PHP normal text to Unicode / UTF-16 (XML) -> Flash MX v6.0
| From: | Danny Asmussen | Date: | Mon, 29 Apr 2002 10:50:40 +0000 |
| Subject: | PHP normal text to Unicode / UTF-16 (XML) -> Flash MX v6.0 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13380@lists.php.net to get a copy of this message | ||
Hey there ...
I'm having a major problem, I have to generate a XML file encoded in
UTF-16
so Flash can read the XML file and decode it - and would be able to show
the
correct chars in every language (or atleast Lithuania, Czech and other
normal
language english).
I've tried so many things, mb_string extension seems to work fine but it
doesn't
generate "real" UTF-16 encoding. If I check a XML file in notepad and
save it as
unicode it works really great - but PHP just doesn't seem to do this.
Notepad creates a "header" like (2 bytes) a 0x0FFh and 0x0FEh in the
beginning
and some of the "wierd" chars is encoded a different way than PHP does
it.
I've tried the Iconv extension, which was a bitch to make it work - but
when PHP
didn't say any more errors it seemed to work, but again with small
errors ...
Anyone know how to make some normal chars (UTF-8 or normal string type)
to
UTF-16 in PHP.
Thanks :)
__________________________________________________________________
Danny Asmussen - Web developer
Emerge A/S
Gothersgade 14, 4
DK-1123 København K.
(+45) 333 66 555
__________________________________________________________________