json_encode() wont work for me when I\'m using åäö. Why? And how can I get it to work?
json_encode()
The php:
php
echo json_encode($arr);
As Greg mentioned, I had to encode åäö to UTF-8. But I did't use iconv or mbstring. When I utf8_encode() all values before putting the values to the array the problem was solved.
UTF-8
utf8_encode()
array