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

Reply via email to