php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62934 mb_convert_kana() does not convert iteration marks
Submitted: 2012-08-26 11:03 UTC Modified: 2012-09-21 02:19 UTC
Votes:2
Avg. Score:2.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: scin dot ichi at gmail dot com Assigned: moriyoshi (profile)
Status: Closed Package: mbstring related
PHP Version: 5.3.16 OS: any platform
Private report: No CVE-ID: None
 [2012-08-26 11:03 UTC] 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:
--------------
アゝスゞメアヽスヾメ
あゝすゞめあヽすヾめ

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-04 17:27 UTC] ajf at ajf dot me
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.
 [2012-09-21 02:19 UTC] [email protected]
-Assigned To: +Assigned To: moriyoshi
 [2017-07-28 11:04 UTC] [email protected]
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jun 12 18:01:26 2025 UTC