From: vijijvs at yahoo dot co dot in Operating system: Mandrake linux PHP version: 4.4.5 PHP Bug Type: DOM XML related Bug description: DomElement->set_attribute() for french characters
Description: ------------ When "/home/viji/Endroit de protection de caractères spéciaux" is passed as argument to DomElement->set_attribute() function, the french letters è and é get converted into 貥 and 飩. Php version im using is 4.3.9 and Apache 1.33. Note: ===== Tried by using utf8_encode() and utf8_decode() before setting value for the attribute. Reproduce code: --------------- DomElement->set_attribute(Name, "/home/viji/Endroit de protection de caractères spéciaux"); Expected result: ---------------- <Location><Path Name="/home/viji/Endroit de protection de caractères spéciaux" /></Location> Actual result: -------------- <Location><Path Name="/home/viji/Endroit de protection de caract貥s sp飩aux" /></Location> -- Edit bug report at http://bugs.php.net/?id=40554&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40554&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40554&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40554&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40554&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40554&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40554&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40554&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40554&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40554&r=support Expected behavior: http://bugs.php.net/fix.php?id=40554&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40554&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40554&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40554&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40554&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40554&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40554&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40554&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40554&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40554&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40554&r=mysqlcfg