Edit report at https://bugs.php.net/bug.php?id=65361&edit=1
ID: 65361 Updated by: a...@php.net Reported by: pascal dot chevrel at free dot fr Summary: Transliteration has uppercase problems with letter J in Serbian -Status: Open +Status: Feedback Type: Bug Package: Unicode Engine related Operating System: Linux PHP Version: 5.5.1 Block user comment: N Private report: N New Comment: I didn't say source, but "source cyrillic string UTF-8 encoded" ... well, that might be nearly the same :) I'm not going to expose my dev laptop on the net, anyway the snippet you've posted is all i've tried anyway. Windows ICU50 works as you expect to be correct, ubuntu ICU48 the erroneous behaviour you describe is reproduceable. So please try never ICU, that could be it. Previous Comments: ------------------------------------------------------------------------ [2013-07-30 17:22:02] pascal dot chevrel at free dot fr >Ok, then it has to be ICU itself. I was testing on windows previously which >has ICU 50, but ubuntu 13.04 ships with ICU 48 and I can repro what you say >there. > Which ICU version do you use? Most linux distros have 48 at the time. May be > you could try a newer ICU, even 51? But even now from what I can see it's > unlikely a PHP bug. Phpinfo() indicates that the ICU version is 4.8.1.1, I confess I don't know how to upgrade it to a newer version to test. ------------------------------------------------------------------------ [2013-07-30 17:17:16] pascal dot chevrel at free dot fr "but with UTF-8 source it gives the translit you expect" That's not the case for me, do you have an example online showing my example working? A gist on github for example. ------------------------------------------------------------------------ [2013-07-30 17:16:30] a...@php.net Ok, then it has to be ICU itself. I was testing on windows previously which has ICU 50, but ubuntu 13.04 ships with ICU 48 and I can repro what you say there. Which ICU version do you use? Most linux distros have 48 at the time. May be you could try a newer ICU, even 51? But even now from what I can see it's unlikely a PHP bug. Thanks. ------------------------------------------------------------------------ [2013-07-30 16:49:20] pascal dot chevrel at free dot fr All my sources are in utf8, I rechecked with the isutf8 bash command. ------------------------------------------------------------------------ [2013-07-30 16:43:45] a...@php.net Is your source cyrillic string UTF-8 encoded? No idea how to encode otherwise, but with UTF-8 source it gives the translit you expect. So that might be the key. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65361 -- Edit this bug report at https://bugs.php.net/bug.php?id=65361&edit=1