Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to identify special characters (hidden) in a string?

Nabila islamJul 27 2016 — edited Jul 27 2016

Hi All

I am trying to find if there is any special characters hidden inside a string. I need to know what are they so that I can action/replace them!

Example: I have a table "Test" with 2 columnsĀ  "Name1" and "Name2" with following values.

Name1Name2
DAVIDDAVID
TONY D'SUZATONY D'SUZA
MARRYNANCY

When I run a query like this:

select name1, name2 from test

where name1 = name2

It should return row 1 and row 2 which it doesn't at the moment. I have tried with trim but couldn't find out what's wrong. Also searched if there is any line feed / chr(10) / chr(12) / chr(13). Nothing is there.

// Need to mention here that, the data is inserted into this table through a csv file. Not all records are like this, but there are some which are not returning in my above query.

This forum always shows some light to me. If anybody knows the issue, please share your knowledge.

Thanks in advance for all your help.

This post has been answered by John Thorton on Jul 27 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 24 2016
Added on Jul 27 2016
4 comments
46,323 views