From: max at injapan dot ru
Operating system: CentOS 5.2
PHP version: 5.3CVS-2009-02-12 (snap)
PHP Bug Type: mbstring related
Bug description: mb_convert_encoding converts some symbols incorrectly from
EUC-JP to UTF-8
Description:
------------
mb_convert_encoding converts symbols \xAD\xB5-\xAD\xBF incorrectly
from EUC-JP to UTF-8. It's possible that some other symbols converted
incorrectly too, but I have no possibility to check it to full
extent.
Unicode has corresponding codepoints, i.e. U+2161 for Ⅱ.
Majority of EUC-JP texts is converted mormally.
Reproduce code:
---------------
echo mb_convert_encoding("\xAD\xB6", "UTF-8", "EUC-JP");
Expected result:
----------------
string «Ⅱ» (U+2161)
printed to STDOUT
Actual result:
--------------
string «?»
printed to STDOUT
--
Edit bug report at http://bugs.php.net/?id=47366&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47366&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47366&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47366&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47366&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47366&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47366&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47366&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47366&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47366&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47366&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47366&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47366&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47366&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47366&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47366&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47366&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47366&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47366&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47366&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47366&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47366&r=mysqlcfg