should help you out This is probably correct in the server - but viewing in a broswer it looks wrong. If you don't specify the character encoding of the output, or the setting in php.ini is wrong, then the browser will guess, and often gets it wrong. A couple of ways to test:
echo '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'; // Set the charset appropriately! Looks like a cyrillic set?
echo utf8_decode(print_r($json_output, true));
One function parsing character to Unicode works in Eclipse but not in JDeveloper?
Hope that helps When you interpret the UTF-8 bytes of "我" (0xE6 0x88 0x91) as Windows-1252, you will get "æˆ‘" When you pass "æˆ‘" to your function, the result is \u00e6\u2c6\u2018. So somewhere you are inputting UTF-8 but the program is simply interpreting it in Windows-1252.
ê (Unicode character) XML Parsing Error: not well-formed
I wish this helpful for you just indicates what encoding the document is supposedly in. It does not change the encoding of the document. If it works when indicating the document to be in ISO-8859-1, but not with anything else, then that means the document is actually encoded in ISO-8859-1 and not anything else. If you want a UTF-8 file, you need to actually encode the document in UTF-8 and indicate it as such in the declaration.