|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-30 16:43 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2013-07-30 16:43 UTC] ab@php.net
[2013-07-30 16:49 UTC] pascal dot chevrel at free dot fr
-Status: Feedback
+Status: Open
[2013-07-30 16:49 UTC] pascal dot chevrel at free dot fr
[2013-07-30 17:16 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2013-07-30 17:16 UTC] ab@php.net
[2013-07-30 17:17 UTC] pascal dot chevrel at free dot fr
-Status: Feedback
+Status: Open
[2013-07-30 17:17 UTC] pascal dot chevrel at free dot fr
[2013-07-30 17:22 UTC] pascal dot chevrel at free dot fr
[2013-07-30 17:26 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2013-07-30 17:26 UTC] ab@php.net
[2013-07-30 17:44 UTC] ab@php.net
-Status: Feedback
+Status: Not a bug
[2013-07-30 17:44 UTC] ab@php.net
[2013-07-31 08:04 UTC] pascal dot chevrel at free dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
Description: ------------ The transliterator class does not work well when converting from Cyrillic Serbian to Latin Script Serbian. All the j letters in cyrillic are systematically converted to uppercase J in latin-script serbian while it should be lowercase j inside a word. Online conversion tools probably also based on ICU don't have this bug and do the conversion correctly. I am attaching a code sample that shows that bug. I tested that the bug exists in both PHP 5.4 and 5.5 Thanks! Test script: --------------- <?php $t = Transliterator::create('Serbian-Latin/BGN'); $source = 'Најгледанији сајтови'; echo '<ul>' . '<li>Cyrillic source: ' . $source . '</li>' . '<li>Expected transliteration: Najgledaniji sajtovi</li>' . '<li>Actual transliteration: ' . $t->transliterate($source) . '</li>' . '</ul>'; Expected result: ---------------- This string : Најгледанији сајтови Should be transliterated to: Najgledaniji sajtovi Actual result: -------------- But PHP transliterates it to: NaJgledaniJi saJtovi