Re: High Ascii chars

From: Date: Sun, 08 Jul 2001 12:03:41 +0000
Subject: Re: High Ascii chars
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56752@lists.php.net to get a copy of this message
Hi rm! On Sat, 07 Jul 2001, rm wrote: > > php3.x > > We have a large number of people submitting a large > number of docs...I'm having a problem with some docs > coming through with high ascii characters in the text, > apparently the dbm database we're using chokes on some > high ascii chars. I need to eliminate characters in > the text from 122 to 255. I can't seem to find a > simple way to do this....I have a routine, it works > but it takes too long, something like; > > for ($i=122; $i<256; $i++){ > > $textline=str_replace(chr($i),'',$textline) > > } $textline = preg_replace("/[\x7A-\xFF]+/",'', $textline); -- teodor

« previous php.general (#56752) next »