Hello,
I am trying to transalte entry in Turkish Characters to
English Characters.
I wrote the following code.
function translate_turkish($string) {
$estring = strtr($string, "�", "c");
$estring = strtr($string, "�", "c");
$estring = strtr($estring, "�", "g");
$estring = strtr($estring, "G", "G");
$estring = strtr($estring, "�", "s");
$estring = strtr($estring, "S", "S");
$estring = strtr($estring, "�", "i");
$estring = strtr($estring, "I", "XX"); *********
$estring = strtr($estring, "�", "u");
$estring = strtr($estring, "�", "U");
$estring = strtr($estring, "�", "o");
$estring = strtr($estring, "�", "O");
return ($estring) ;
}
Capital i (not I but it shows at the line where you see the
XX) is causing a problem. I can not translate. from cap i
to I.
Can you please suggest any help?
=====
Mehmet Erisen
http://www.erisen.com
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]