Re: Charsets ?

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

 



Ruben Rubio Rey wrote:
Hi, I hace a functions that does a think, it cleans strange characters:

$trash_string='whateverwithstrangecharacterslikeñ';
$clean_string=strtr(trim($trash_string)," 'ç/-àáãèéìíòóõùúüñ()äëïö,", "__c__aaaeeiiooouuun__aeio_");

Its strange, but if I work with php's charset iso8859-15 it works fine, but i I set php to utf-8 it does not work.
Any ideas?
Sure.
UTF-8 is an other encoding.
Those characters are shown as UTF-8 encoded Characters.
use the decode and encode function.

Greets
	Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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