Thanks a million for your mail. It's very helpful for me.

This is fine. But can I use this for all the Special Characters. I mean,
this should NOT be working only with one language or so. I want this to be
working with all the Special Characters and Languages available in this
world.

Pls. give me more info on this.

Thanks,
~ Karthick


You wrote a swedish sentence :-)

U can use strtr to exchange characters in a string, based on a list of chars
to be changed, like:

<?
$string = "Vänlig hälsning André";
$newstring = strtoupper(strtr( $string, "æøåéáíóúëäïöüàèìòùêâîôûñãõ",
"ÆØÅÉÁÍÓÚËÄÏÖÜÀÈÌÒÙÊÂÎÔÛÑÃÕ" ));
echo $newstring;
?>

Probably
-----Original Message-----
From: TV Karthick Kumar [mailto:[EMAIL PROTECTED]]
Sent: 12. januar 2001 13:20
To: Bryne Jørg Vidar
Subject: Re: [PHP] Urgent - Special Characters


Hi

    Can you write me in English ?. It seems that you are helping me. But I
want to get it in English.

    PLEASE HELP ME.

Thanks,
~ Karthick

----- Original Message -----
From: Bryne Jørg Vidar <[EMAIL PROTECTED]>
To: TV Karthick Kumar <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 12:06 PM
Subject: RE: [PHP] Urgent - Special Characters


Hva med en rask løsning:
strtr( "Vänlig", "æøåéáíóúëäïöüàèìòùêâîôû", "ÆØÅÉÁÍÓÚËÄÏÖÜÀÈÌÒÙÊÂÎÔÛ" )


-----Original Message-----
From: TV Karthick Kumar [mailto:[EMAIL PROTECTED]]
Sent: 12. januar 2001 13:02
To: [EMAIL PROTECTED]
Subject: [PHP] Urgent - Special Characters


Hi all,

    I have a problem while converting the string into upper case by using
the strtoupper function.

    I want to convert the string which has some special characters in it.
For example, med vänlig hälsning, António etc. There are lots of strings /
words with some special characters in it. It cannot be listed.

    As I want to convert them into upper case, I tried.strtoupper(hälsning),
it's just converting it as: HäLSNING and then writes
onto the database. But I want that special character - ' ä ' also to be
converted into upper case and then onto the database. How do I get rid of
this problem and convert into upper case ?.

    PLS. HELP ME.

    Thanks in advance.

~ Karthick



--
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]





-- 
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]

Reply via email to