tags:

views:

93

answers:

4

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.

+1  A: 

Take a look at this


mb_convert_encoding($text, 'UTF-8', $encoding);
Ventus
This can't be used for cyrillic letters.
Happy
A: 

Have a look at iconv functions:

You may be interested in:

Sarfraz
I don't need charset encoding. Its different.
Happy
A: 

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: http://stackoverflow.com/questions/1284535/php-transliteration

Joeri Sebrechts
Call to undefined function iconv_open()
Happy
+1  A: 

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;
FractalizeR