php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66693 Wrong transliteration of "Ё" letter
Submitted: 2014-02-11 06:14 UTC Modified: 2016-04-09 09:48 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: camaro396z28 at gmail dot com Assigned: ab (profile)
Status: Closed Package: intl (PECL)
PHP Version: 5.5.9 OS: Windows 7 Ultimate x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 45 = ?
Subscribe to this entry?

 
 [2014-02-11 06:14 UTC] camaro396z28 at gmail dot com
Description:
------------
The Transliterator class can't transliterate russian "Ё" letter properly.

Test script:
---------------
<?php

$transliterator = Transliterator::create('Russian-Latin/BGN', Transliterator::FORWARD);
$str = 'Ёжик ёжик';
echo $transliterator->transliterate($str);


Expected result:
----------------
Yozhik yozhik

Actual result:
--------------
Yëzhik yëzhik

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-09 09:48 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2016-04-09 09:48 UTC] ab@php.net
This seems correct with the ICU documentation, see http://userguide.icu-project.org/transforms/general#TOC-Cyrillic . PHP only wraps it. You could try "Cyrillic-Latin;NFD;[:mark:]Remove" or alike to convert to ASCII, that would bring similar results. Otherwise it's only up to ICU to implement other translit variants.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC