Display of Chinese characters / Conversion between AL16UTF16 and UTF8
549064Dec 5 2006 — edited Oct 3 2007Hi all,
I have a view with NVARCHAR2 fields containing chinese characters. The encoding for these is AL16UTF16. A simple "SELECT <my_col> FROM <view_name>" correctly displays the chinese characters.
Anyway, I need to make a conversion for extraction purposes. I'd like to convert to UTF8.
But using the following statement did not work:
SELECT CONVERT(<my_col>, 'UTF8')
The characters were garbled.
I also tried
SELECT CONVERT(<my_col>, 'UTF8', 'AL16UTF16')
SELECT CONVERT(<my_col>, 'AL32UTF8')
SELECT CONVERT(<my_col>, 'AL32UTF8', 'AL16UTF16')
... but no success; some characters are still replaced by a rectangle.
I am using SQL Developer 1.0.0.15.57.
Any idea, why the conversion does not really function? Or might it be a problem of the SQL Developer?
Thanks to any answer in advance!
Best regards,
Philipp