ID: 22277 Updated by: [EMAIL PROTECTED] Reported By: mail2rk at gmx dot de -Status: Open +Status: Wont fix Bug Type: Strings related Operating System: any PHP Version: 4.3.0 New Comment:
utf8_encode() only supports iso-8859-1 to UTF-8 conversion, whilst the charset that covers euro sign is iso-8859-15. Try iconv extension instead. Previous Comments: ------------------------------------------------------------------------ [2003-02-18 11:20:33] mail2rk at gmx dot de Try following: <? $xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>"; $xml .= "<root>my � sign</root>"; echo utf8_encode($xml); ?> in the output the EURO sign won't show up. While if you save the php file as utf8 and drop the utf8_encode method, the xml string will be shown properly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22277&edit=1
