I have a php page generating json extracting values from a mysql table.
Everything is fine except where I have values containing euro symbol (like "€ 20,00") the euro symbol show up in my json as \u20ac...
"fare": "\u20ac 20,00"
Multibyte can - as long as they are not control characters - be displayed literally or escaped as
\uXXXX and both representations are correct. If you prefer the literally representation and if you use php to create the json then you need to pass the correct options to
The option you are looking for is JSON_UNESCAPED_UNICODE:
Encode multibyte Unicode characters literally (default is to escape as \uXXXX). Available since PHP 5.4.0