Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Converting from Unicode
I have some strings stored by a third party app in Oracle 8.0.5 as Unicode
(I think, where straight select output produces "00310032...").
How can I convert this to straight ascii from a Java prog? I've tried something like:
ResultSet rset = stmt.executeQuery ("select CONVERT(COLNAME, 'US7ASCII',
'AL24UTFFSS') from SCHEMA.TABLENAME");
and
ResultSet rset = stmt.executeQuery ("select CONVERT(COLNAME, 'US7ASCII',
'UTF8') from SCHEMA.TABLENAME");
but neither worked.
Thanks in advance for any tips.