Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
I have tried every encoding which could be found in: http://www.php.net/manual/en/ref.mbstring.php But nothing seems to work, I don't have any problems displaying the funny chars in the browsers, there are some encodings which works fine for that, the problem is when I save it to a file using

Re: [PHP] Problem with special chars.

2005-10-14 Thread Jochem Maas
Erfan Shirazi wrote: The problem is if I don't specify and encoding even an echo() on the specify a different encoding if you don't want html entities. 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()

Re: [PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
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

Re: [PHP] Problem with special chars.

2005-10-14 Thread Jochem Maas
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"); ^-

[PHP] Problem with special chars.

2005-10-14 Thread Erfan Shirazi
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,