PHP equivalent of javascript JSON.stringify()
As I notice PHP’s json_encode($array) mess things up on diacritics.
If I update my database column type text with javascript-created JSON passed over HTTP, everything looks good. but when I create the JSON into PHP, some characters get encoded weirdly.