Page 1 of 1

Putting Escape character in strings

PostPosted: Mon Mar 28, 2016 4:33 am
by videoaudio
Hi,

I have string data with special characters like ' (quotes) "" (double quotes) etc.
I am passing the Json strings to JS, which is generated by CefWriteJSON.

Is there any way (any cef method) where I can put escape characters in my string, before generating Json string? Similar to CefURIEncode?
CefURIEncode does not considers -_.!~*'() character sequences. (info from cef/include/cef_parser.h)
cef_uri_unescape_rule_t is present in cef_types.h which is useful only for CefURIDecode, not for encode.
Please help.

Thanks in advance.

Re: Putting Escape character in strings

PostPosted: Sun Apr 03, 2016 11:02 pm
by videoaudio
I could solve the issue by passing string dictionary as is to JS and creating a dictionary object out of it.

Thanks.