[Solved] Displaying UNICODE characters in JSON


You’ve already confirmed in Encoding JSON to support UTF-8 characters in an android app that in a regular browser, you get question marks too. This indicates that the problem is server side.

The issue is probably that the database connection from PHP to MySQL is not set to UTF-8. During the response, any non-ISO8895-1 chars will be converted to “?”.

Set the character set on the connection with:

mysqli_set_charset($con, "utf8")

before you issue the select.

1

solved Displaying UNICODE characters in JSON