Bug #64719 [NEW]: simplexml not show farsi or arabic
| From: | hooman6445 at gmail dot com | 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