Bug #64719 [NEW]: simplexml not show farsi or arabic

From: Date: Fri, 26 Apr 2013 09:04:31 +0000
Subject: Bug #64719 [NEW]: simplexml not show farsi or arabic
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178645@lists.php.net to get a copy of this message
From: hooman6445 at gmail dot com Operating system: PHP version: 5.4.14 Package: SimpleXML related Bug Type: Bug Bug description:simplexml not show farsi or arabic Description: ------------ --- From manual page: http://www.php.net/function.simplexml-load-file#refsect1- function.simplexml-load-file-examples --- Test script: --------------- <?php $xmlstring = <<<XML <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>هومن</to> <from>من</from> <heading>باگ</heading> <body>این فارسی یا عربی ساپرت نمیکنه.</body> </note> XML; $xml = simplexml_load_string($xmlstring); var_dump($xml); ?> Expected result: ---------------- object(SimpleXMLElement)[1] public 'to' => string 'هومن' (length=16) public 'from' => string 'من' (length=8) public 'heading' => string 'باگ' (length=12) public 'body' => string 'این فارسی یا عربی ساپرت نمیکنه.' (length=106) Actual result: -------------- object(SimpleXMLElement)[1] public 'to' => string 'هومن' (length=16) public 'from' => string 'من' (length=8) public 'heading' => string 'باگ' (length=12) public 'body' => string 'این فارسی یا عؠ±Ã˜Â¨Ã›ÂŒ ساپرت نمیکنه.' (length=106) -- Edit bug report at https://bugs.php.net/bug.php?id=64719&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64719&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64719&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64719&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64719&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64719&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64719&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64719&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64719&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64719&r=support Expected behavior: https://bugs.php.net/fix.php?id=64719&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64719&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64719&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64719&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64719&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64719&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64719&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64719&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64719&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64719&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64719&r=mysqlcfg

« previous php.bugs (#178645) next »