I'm trying to store an array as json in Mysql
I have problems with special chars like æøå.
Input is in UTF-8, verified with mb_detect_encoding.
Code:
json_encode($values)." - ".var_export($values, true)
Result in MySQL:
{"6":"\u00e6\u00f8\u00e5","7":"test"} - array (
6 => 'æøå',
7 => 'test',
)
Why that bull**** characters in json_encode?
Thanks for help🙂