Skip to Main Content

Database Software

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!

Displaying Chinese characters in SQL*Plus

878923May 2 2012 — edited May 2 2012
DB version: 11.2
OS Version : AIX 6.1

DB characterset:AL32UTF8

To display chinese characters in SQL*Plus, I did the following:
$ export LANG=zh_CN.UTF-8
$ export LC_ALL=zh_CN.GB2312
$ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
$ 

$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on ÐÇÆÚÈý 5ÔÂ 2 15:52:33 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning option

SQL> ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';

Session altered.

SQL> ALTER SESSION SET NLS_TERRITORY='CHINA';

Session altered.

SQL> select unistr('\8349') from dual;  ---- not 100% sure if this is the way to verify if chinese characters can be displayed.

UN
--               
²Ý                 ----------------------------------------> Getting a junk character instead of chinese 
If I was using putty, are the above steps enough to get chinese characters displayed ?
Our ssh client is Tectia (not putty).
According the below ML Note, the SSH client has to configured correctly to use globalization features.
+The correct NLS_LANG setting in Unix Environments [ID 264157.1]+
Googling "Tectia + Chinese" didn't return useful results
This post has been answered by Sergiusz Wolicki-Oracle on May 2 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2012
Added on May 2 2012
2 comments
4,143 views