Hi, my stack is overflow :):):):) I can't find the solution...
I'm developing a server-client application.
My GWT client running in browser. Communicate with my C++ server by:
GWT-JSON - lighttpd - libfcgi - cgicc - libjson - C++ application
My problem:
The server response with a JSON string to
Dear Philippe,
Thank you for the post,
String response={ \test\ :
\\\u00C3\\u0081\\u00C3\\u0089\\u00C5\\u00B0\ };
//��� in UTF-8
No. That's not UTF-8, that's UNC encoding. It results in Java's UTF-16
encoding.
But \u00C3\u0081 why not UTF-8 encoding?
See:
Dear Philippe,
You are right...
If I change the escaped (\u) codes to UTF-16, for my example:
String response={ \test\ : \\\u00c1\\u00c9\\u0170\ }; //ÁÉÜ in
UTF-16
All works correctly.
But I found a strange thin too:
If I disable the\u escaping in JSON writer in server side, all works
:
On Friday, May 31, 2013 10:07:23 AM UTC+2, Tibor Szolnoki wrote:
Dear Philippe,
You are right...
If I change the escaped (\u) codes to UTF-16, for my example:
String response={ \test\ : \\\u00c1\\u00c9\\u0170\ }; //ÁÉÜ in
UTF-16
All works correctly.
But I found a strange thin too