5

Which method of transliteration is true to convert cyrillic letters to latin letters?

Like writing russian names using english alphabet.

There are many methods of conversion, searching for one that is used on television or other mass media.

Thanks.

James
  • 42,081
  • 53
  • 136
  • 161
  • 1
    It seems to me that the OP is asking about transliteration, rather than technical conversion. If so, the answer is that there is not one 'true' mapping. Sorry. – Colin Fine Aug 12 '10 at 14:40
  • @user257493: just need to convert russian names to latin letters. Its not about typing messages, about using them in urls. – James Aug 12 '10 at 14:50
  • 1
    @user257493: its called transliteration and there are many maps on it. An example - http://www.phpclasses.org/browse/download/zip/package/2641/name/cyrlat-2005-10-26.zip – James Aug 12 '10 at 14:52
  • @Colin Fine: yes, but which way is usually used for writing russian names on tvchannels like eurosport? There is some method, they can't invent – James Aug 12 '10 at 14:54

4 Answers4

3

You can take this http://drupal.org/project/transliteration and make it suit your project. This is one of the best implementations of transliteration.

Also you can transliterate using iconv:

echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL;
Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
1

Take a look at this


mb_convert_encoding($text, 'UTF-8', $encoding);
Ventus
  • 2,482
  • 4
  • 35
  • 41
1

I assume you are looking for "transliteration", the conversion of text in foreign scripts to latin script, represented to "sound" the same way.

See this question: PHP Transliteration

Community
  • 1
  • 1
Joeri Sebrechts
  • 11,012
  • 3
  • 35
  • 50
0

Have a look at iconv functions:

You may be interested in:

Sarfraz
  • 377,238
  • 77
  • 533
  • 578