Re: Problem with special chars.

From: Date: Fri, 14 Oct 2005 11:08:39 +0000
Subject: Re: Problem with special chars.
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-883@lists.php.net to get a copy of this message
The problem is if I don't specify and encoding even an echo() on the string shows strange chars when I have made a mb_strtoupper() on the string. With HTML-ENTITIES at least it looked ok when you made an echo() but when saved in file it looks bad. Does anybody now what I can do in order to make the string into capital letters, be able to save it to a file and looking as it should look, that is: Asunción and not ASUNCIÓN? /Erfan Erfan Shirazi wrote:
Hi all I have some problems when I make a string containing the following "Malmö, Asunción" to capital letters and then save it to a file. I use the following to make it to capital letters: $msg = mb_strtoupper($msg, "HTML-ENTITIES"); And this works just fine, everything looks as it should, but when I save it to a file, this is how it looks: "MALMÖ, ASUNCIÓN It seems it has problems with "ó" and "Ö", does anybody know how this can be solved? I have tried some different encodings but nothing helps, I'm using PHP 4.3.2. Thx in advance for all help. /Erfan


« previous php.i18n (#883) next »