Hey,
I've got a problem with utf-8 strings.
I start with getting a string from a database and when i encode it
with
utf8Encode($str ) and output it to the browser (which has a utf-8
encodig), there is no problem displaying special symbols (like the
euro sign €).
But then i want to creat an xml document and write the following to a
file:
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"ye s\"?>
<Root>
utf8Encode($str )
</Root>
But when i open the xml file the special symbols are gone :-S.
I've tried a lot, but can't get it working.
So please help!
BTW: I'm using server with this phpinfo:
I've got a problem with utf-8 strings.
I start with getting a string from a database and when i encode it
with
utf8Encode($str ) and output it to the browser (which has a utf-8
encodig), there is no problem displaying special symbols (like the
euro sign €).
But then i want to creat an xml document and write the following to a
file:
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"ye s\"?>
<Root>
utf8Encode($str )
</Root>
But when i open the xml file the special symbols are gone :-S.
I've tried a lot, but can't get it working.
So please help!
BTW: I'm using server with this phpinfo:
Comment