I have a UTF-16 encoded xmlstring that I want to parse with php.
encoding to UTF-8 isn’t possible because not all the content can be represented in UTF-8
The problem is that when I try to use the xml_parser_create("UTF-16") and xml_parse_into_struct functions I get a message about UTF-16 not being supported.
What are my options?
There is a UTF16 decode function that someone wrote and posted to the php.net, might do the trick, although not guaranteeing it.
http://us.php.net/manual/en/function.utf8-decode.php#49185