I have realized a simple application with GWT 1.7.1 and Php. My database contains strings in latin1 encoding so in php code (the file called by GWT) I need to encode those values in utf8 otherwise json_encode function wouldn't work.
// snippet $my_string = "TEST – TEST"; $my_encoded_string = utf8_encode($my_string); json_encode($my_encoded_string); ... // end snippet When I try to read those values in GWT and insert them into a ListBox, I got a blank space instead of "–" char. The resulting encoded string in Php is "TEST \u0096 TEST". I noticed that I can't use either Charset class in GWT either the constructor new String(byte[] bytes, String charsetname) to convert to ISO-8859-1. Thanks a lot for the help Fabrizio -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
