#24106 [Ana->Bgs]: mbstring configuration variables are marked PHP_INI_ALL, but this is false.
| From: | hirokawa@php.net | Date: | Mon, 30 Jun 2003 12:45:12 +0000 |
| Subject: | #24106 [Ana->Bgs]: mbstring configuration variables are marked PHP_INI_ALL, but this is false. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42848@lists.php.net to get a copy of this message | ||
ID: 24106
Updated by: hirokawa@php.net
-Summary: UTF8 to SJIS bug
Reported By: richard at enfour dot co dot jp
-Status: Analyzed
+Status: Bogus
Bug Type: mbstring related
-Operating System: MacOSX
+Operating System: Linux
-PHP Version: 4.3.2
+PHP Version: 4.3.0
Assigned To: hirokawa
New Comment:
I tested also on Linux using PHP 4.3.3RC1.
<?php
$str_ucs2 = sprintf("%c%c%c%c",0x8e,0x2a,0x8d,0xe1);
echo mb_convert_encoding($str_ucs2, "SJIS", "UCS2");
?>
the output byte code is E748+90D5, as you are expecting.
I think it works fine.
Previous Comments:
------------------------------------------------------------------------
[2003-06-28 09:16:53] hirokawa@php.net
I tested by a tiny script using PHP 4.3.3RC1 on Windows2000,
<?php
$str_ucs2 = sprintf("%c%c%c%c",0x8e,0x2a,0x8d,0xe1);
echo mb_convert_encoding($str_ucs2, "SJIS", "UCS2");
?>
the output byte code is E748+90D5, as you are expecting.
I think it works fine.
------------------------------------------------------------------------
[2003-06-10 02:00:57] richard at enfour dot co dot jp
It maybe elsewhere but I found a case where UTF-8 to
SJIS mb_convert_encoding mashes a Japanese text string.
The string is the kanji for "souseki"
Unicode:
U8e2a+8de1
In SJIS it should be:
E748+90D5
but gets mashed.
EUC works...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24106&edit=1