Oracle 10 EE8MSWIN1250 character set export to UTF-8

Hello,

if Oracle database which was created with EE8MSWIN1250, is it possible to export the data as UTF-8 encoded (AL32UTF8).

If not, when data is exported it is EE8MSWIN1250 format. Can I import this into a database created with AL32UTF8 character set. If so what do I have do?

Thanks in advance.
chuntseAsked:
Who is Participating?
 
mrjoltcolaConnect With a Mentor Commented:
Yes, AL32UTF8 will store characters from 1 to 4 bytes wide.

You need to set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 in your shell environment before doing the export and Oracle client will translate.

Set the same in your import environment.

Oracle will translate for you as long as the DB character set is capable of encoding what you give it. In this case AL32UTF8 is a UNICODE set that can pretty much store anything.
0
 
chuntseAuthor Commented:
Thanks.

Just to clarity, if I set shell environment to NLS_LANG=AMERICAN_AMERICA.AL32UTF8
Then when I export the data (which is stored in database as EE8MSWIN1250), oracle client will encoded the exported data to AL32UTF8?
0
 
mrjoltcolaCommented:
Yes. Absolutely.

Then when you do the import, Oracle will re-translate to the destination database, if that database character set is compatible.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
mrjoltcolaCommented:
Also pay attention to the export log/output it will report which character set it is using.
0
 
chuntseAuthor Commented:
Excellent! Thanks
0
 
chuntseAuthor Commented:
If I have stored procedure that triggers the export of data does the NLS_LANG have an effect when the stored procedure is started from Oracle SQL developer?
0
All Courses

From novice to tech pro — start learning today.