I was previously using file_get_contents to retrieve a JSON document like this:
$json = file_get_contents('php://input');
But when trying to add special characters such as ÷ to the json... file_get_contents is apparently decoding it as ASCII instead of UTF8 and so the ÷ symbol is converted u00f7.
Can I force file_get_contents to decode the php://input document as UTF8? Or is there something else I can do like pull the document out as binary in some way and then manually decode it myself?