Re: triming utf8 (?) a string

From: Date: Mon, 09 Jul 2007 01:30:54 +0000
Subject: Re: triming utf8 (?) a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258479@lists.php.net to get a copy of this message
Rick Pasotto wrote:
I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some '\ufffd' bytes. How can I get rid of those extra bytes? I've tried both trim($x,'\ufffd') and trim($x,utf8_decode('\ufffd')). trim() is meant to remove chars from the beginning and ending of a string.
http://us2.php.net/str_replace is meant to remove a set of chars from a string. Anywhere within the string. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#258479) next »