I am trying to fetch records from Oracle 9i database whose value are 'FOO - BAR' for a particular column.
The 'FOO - BAR' condition values are present in the table, But when I run the query, the results are not coming.
After breaking my head for sometime, figured out that there is a difference in the size of the hypen's.
'FOO – BAR'
'FOO - BAR'
This time I copied (through SQLDeveloper) the DB value and pasted the value in Eclipse IDE. I did NOT see any difference in the Eclipse. When I run the query from IDE, to my surprise it worked and the values were coming.
I deployed the same class file to our servers(UX box), and again back to square no 1 - the values are not coming.
I gave a try changing the file encoding of my IDE from default(Cp1252) to UTF-8 and everything is fine now.
Can some one explain what's happening? Will the size of hyphen varies with encoding? do we have three different kinds of dashes?