Putting Escape character in strings

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Putting Escape character in strings

Postby videoaudio » Mon Mar 28, 2016 4:33 am

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.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am

Re: Putting Escape character in strings

Postby videoaudio » Sun Apr 03, 2016 11:02 pm

I could solve the issue by passing string dictionary as is to JS and creating a dictionary object out of it.

Thanks.
videoaudio
Techie
 
Posts: 36
Joined: Tue Feb 17, 2015 10:08 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 21 guests