Re: Problem with special chars.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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");
				^- you are telling mb_strtoupper to
encode your 'funky' chars into 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
	^\	
	  \---------------------- notice the names: 'Ouml' meaning. 'O umlaut'


It seems it has problems with "ó" and "Ö", does anybody know how this

it has no problems AFAICT, the characters you mention have been turned
into html entities... these entities (in the form '&' + xyz + ';') are
shown in the browser as the relevant char.

can be solved? I have tried some different encodings but nothing helps,

the solution is to not convert to html entities, or (if its required) only
converting to html entities when you want to output something to the browser

I'm using PHP 4.3.2.

Thx in advance for all help.

/Erfan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux