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!

About UTF8 ,Unicode, NVARCHAR2

164752May 7 2009 — edited May 7 2009
Hi,

I have a UTF8 database, converted all the data types to NVARCHAR2 AND NCHAR so I could store the Unicode characters. I have changed the program that reads the file using utilfile from fopen,get_line to fopen_nchar and get_line_nchar to make sure the program handles Unicode characters.

In one of the existing program in the where clause as well as assignments of strings to NVARCHAR2 variable should I prefix with N where N converts the characters into Unicode where columns Or variables are NVARCHAR2 OR NCHAR data types.

i.e.
In the where clause lets say status column of a table is STATUS NVARCHAR2(64) . In the where clause should I change from Stauts = 'valid' to status = N'valid' where N converts the characters into Unicode type explicitly instead of relying on oracle to implicitly convert ?

Please give your suggestions?

Thanks.
Vin.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2009
Added on May 7 2009
4 comments
998 views