Hello,
I’have made a API application with SLIM 3 which returns JSON not in UTF8.
The data come from a db mySql (the encoding of the base is utf8_general_ci) and the charset of the driver is set to UTF8. Here is my spot container :
Do you see “\u00e9” in the “pretty” JSON view in Postman, or just in the raw view? I would expect Postman to show “Croizé” in the pretty JSON view (how it should be displayed) and “Croiz\u00e9” in the raw view (how it was sent).
“Croiz\u00e9” and “Croizé” are equal JSON string notations for the string “Croizé”. Like and   both show the same non-breaking space character in HTML.
In JSON unicode characters can be escaped using the \uxxxx notation, where xxxx is a hexadecimal number of a unicode character. The character with number 00E9 is é:
By default the json_encode function in PHP seems to escape non ASCII-characters in JSON using the \uxxxx notation.
Normally, you don’t have to worry about how PHP encodes these characters as long as you feed an UTF-8 encoded string to json_encode. If you want, you can add an additional flag to force PHP to disable escaping of the unicode characters: