Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Jim Lucas
Rick Pasotto wrote: On Mon, Jul 09, 2007 at 07:45:10AM -0700, Jim Lucas wrote: Rick Pasotto wrote: On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: Rick Pasotto wrote: I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Rick Pasotto
On Mon, Jul 09, 2007 at 07:45:10AM -0700, Jim Lucas wrote: > Rick Pasotto wrote: > >On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: > >>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

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Jim Lucas
Rick Pasotto wrote: On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: 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,'

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Rick Pasotto
On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: > 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

Re: [PHP] triming utf8 (?) a string

2007-07-08 Thread Jim Lucas
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 fr

[PHP] triming utf8 (?) a string

2007-07-08 Thread Rick Pasotto
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')). -- "Economics is extremely useful as a form of employmen