Re: Charsets ?

From: Date: Wed, 08 Mar 2006 13:27:04 +0000
Subject: Re: Charsets ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231656@lists.php.net to get a copy of this message
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)

« previous php.general (#231656) next »