From:             mail2rk at gmx dot de
Operating system: any
PHP version:      4.3.0
PHP Bug Type:     Strings related
Bug description:  utf8_encode and EURO sign

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 bug report at http://bugs.php.net/?id=22277&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22277&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22277&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22277&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22277&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22277&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22277&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22277&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22277&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22277&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22277&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22277&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22277&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22277&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22277&r=gnused

Reply via email to