Sorry, I red this has been already discussed but I'm still stuck.
I need to retreive from a mysql database some strings that contain characters like "ç", "ñ" and so on.
I read them using a PHP script and the
Response.GetString("UTF-8")
function where Response is a HttpResponse.
I tried to encode the mysql field using several UTF-8 variations but all of them return a truncated string where the irrugual char is.
I.E. "Française" becomes "Fran"
Any idea ? Could the problem be into the PHP script ? I use json_encode that uses Unicode only and converts those character into \uxxx format.
I tried to decode the string using:
Response.GetString("ISO-8859-1")
That should be the Unicode regulamentation but the result is the same.
I think the problem is in the PHP Json_encode function.
The string I receive back from it is complete as Json format. It just truncates the voices into the {...} closures.
This is the log:
Response CFG from server: [{"ID":"5","Name":"Deutsch","Class":"0"},{"ID":"1","Name":"English","Class":"0"},{"ID":"4","Name":"Espa","Class":"0"},{"ID":"3","Name":"Fran","Class":"0"},{"ID":"2","Name":"Italiano","Class":"0"}]