rm:

Yes, we have this problem with clients submitting stories,
or some such, by cutting and pasting from word processors.

You can get around it by using javascript to check the
text on exit from the form field, and then either replace
the high ASCII with "?" or strip it out, as appropriate.  This
is "better" too, for performance, as the javascript
will warn and block on the client side, avoiding a
round trip.

_jef
---------------


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)
> 
> }
> 
> Anyone know of a better, faster way to filter out
> these high ascii charcters
> 
> kb
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to