How can I save a json-encoded string with international characters to the databse and then parse the decoded string in the browser?
Work for me :)
function jsonEncodeArray( $array ){ array_walk_recursive( $array, function(&$item) { $item = utf8_encode( $item ); }); return json_encode( $array ); }