I don't have code, but an idea. Instead of replacing the unprintable
characters, could you just extract (using ASCII, CASE and ranges) the known
good characters into a new variable? You might have to examine character by
character, which may slow things down.

Excellent challenge...must think about it (after I finish my paper for
Rachel, that is!)

-----Original Message-----
Sent: Friday, January 03, 2003 10:09 AM
To: Multiple recipients of list ORACLE-L


Hello Listers,
 I was asked if there is any procedure that could be called from a trigger
to replace (with a blank) or remove all non-printable characters from the
text before inserting it in the target table? The incoming data is from a
Web interface and may contain underline, bold, blink, NL characters. Target
column should get characters 0-9, A-Z and a-z. The data should not be
rejected. 

 I suggested use of 'replace', but was asked if I had anything already
written to do this. And I have not. 

 Done anyone have anything to share? 

 Thanks.

- Kirti 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Deshpande, Kirti
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Fink, Dan
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to