Edit report at https://bugs.php.net/bug.php?id=62934&edit=1
ID: 62934
Comment by: ajf at ajf dot me
Reported by: scin dot ichi at gmail dot com
Summary: mb_convert_kana() does not convert iteration marks
Status: Open
Type: Bug
Package: mbstring related
Operating System: any platform
PHP Version: 5.3.16
Block user comment: N
Private report: N
New Comment:
Had a look. Turns out this is an issue with libmbfl, which mbstring uses. Not
sure if it can be updated or not, someone else should look into it. But it's
not
an issue with mbstring itself, mb_convert_kana passes through to
mbl_ja_jp_hantozen.
Previous Comments:
------------------------------------------------------------------------
[2012-08-26 11:03:05] scin dot ichi at gmail dot com
Description:
------------
mb_convert_kana() does not convert japanese iteration marks (odori-ji).
* Hiragana to Katakana ($option = 'C')
ã and ã must be converted ã½ and ã¾
* Katakana to Hiragana ($option = 'c')
ã½ and ã¾ must be converted ã and ã
Test script:
---------------
<?php
echo mb_convert_kana('ãããããã¢ã½ã¹ã¾ã¡', 'C', 'UTF-8') . PHP_EOL;
echo mb_convert_kana('ãããããã¢ã½ã¹ã¾ã¡', 'c', 'UTF-8') . PHP_EOL;
Expected result:
----------------
ã¢ã½ã¹ã¾ã¡ã¢ã½ã¹ã¾ã¡
ãããããããããã
Actual result:
--------------
ã¢ãã¹ãã¡ã¢ã½ã¹ã¾ã¡
ããããããã½ãã¾ã
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62934&edit=1