Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Special Character

Status
Not open for further replies.

getjbb

MIS
Jun 4, 2003
139
US
How can I srip off special characters in PL/SQL?

I have a message which has two small square boxes at the end of it. I do not know what special character these boxes relate to. When I cut and paste them they turn into '?'.

I tried to remove them by using the replace command with chr(13)- replace(message,chr(13),''). The result was that on of the boxes disappeared but the other didn't. They are causing that line in the file to break to the next line.

Sorry I cannot provide you with an example, because when I try to copy the message the boxes disappears and the cursor goes to the next line.

Whatever you can do to help me will be appreciated.

getjbb
 
One might also be a CHR(10). They show up together sometimes.
 
Cant you just grab all but ther last 2 chars

1* select substr('Hello world',1,length('hello world')-2) from dual
SQL> /

SUBSTR('H
---------
Hello wor



In order to understand recursion, you must first understand recursion.
 
Simply use the dump function

select dump(myfield)
from mytable;

This will give a hex dump of the record.

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top