Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Script to convert high-bit characters into CHR(x)
I'm faced with a situation where developers are handing insert requests to me with high-bit characters, expecting to paste them into SQL*Plus and I don't like it. I would prefer that they send their requests using the CHR() function for the character instead, like the example below:
INSERT INTO author
(author_id, first_name, last_name ) VALUES (1147, 'Andr' || CHR (138) || '', 'Coueld' );
Instead i'm getting a request like this:
insert into AUTHOR (AUTHOR_ID,FIRST_NAME,LAST_NAME) VALUES(1147,'Andre','Coueld');
Pine doesn't allow me to paste Andre with the accent grave over the "e" so you don't see it here, but the email request I received had the character ascii value 138.
I hate this.
Does someone have a script or suggestions how to convert these requests in such a way that no high-bit ASCII characters are being pasted? As it sits now I have to use some 3rd party terminal software when these requests come up.
Thanks and regards...