#22277 [Opn->WFx]: utf8_encode and EURO sign
| From: | moriyoshi@php.net | Date: | Tue, 18 Feb 2003 17:24:33 +0000 |
| Subject: | #22277 [Opn->WFx]: utf8_encode and EURO sign | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33431@lists.php.net to get a copy of this message | ||
ID: 22277
Updated by: moriyoshi@php.net
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