Re: Special Characters

From: Date: Fri, 12 Jan 2001 14:02:06 +0000
Subject: Re: Special Characters
Groups: php.general 
Request: Send a blank email to php-general+get-34242@lists.php.net to get a copy of this message
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:tvkarthick@myrealbox.com] 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 <JoergVidar.Bryne@enitel.com> To: TV Karthick Kumar <tvkarthick@myrealbox.com> 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:tvkarthick@myrealbox.com] Sent: 12. januar 2001 13:02 To: php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#34242) next »