From: http://apps.hi.baidu.com/share/detail/19972908
Create a system environment variable named "nls_lang" in windows, set it to "simplified chinese_china.zhs16gbk", and restart PL/SQL developer, in this way, the retrieved Chinese content will not be garbled. To convert to the utf8 Character Set, assign "nls_lang" to "american_america.utf8" and restart PL/SQL developer. Other Character Set settings are the same as above.
Nls_lang format:
Nls_lang = language_territory.charset
There are three components (language, region, and Character Set), each of which controls the NLS subset features. Language indicates the language of the server message. Territory specifies the date and number format of the server. Charset specifies the character set.
How to set the client character set to be consistent with the server-side character set:
Run regedit. Select HKEY_LOCAL_MACHINE as the first step, select software as the second step, select oracle as the third step, select nls_lang as the fourth step, and enter the same character set as the server.
Example: american_america.utf8 or simplified chinese_china.zhs16gbk
After Oracle 10 Gb is installed, a table is created to write Chinese data. It is found that the PL/SQL developer tool cannot display Chinese normally.
To display Chinese characters properly, the server must be consistent with the client code. So check:
1. Check the server code:
Execute SQL Syntax:
Select * from V $ nls_parameters;
You can also set it in the/home/Oracle/. bash_profile language.
You can see that my related settings are:
Lang = zh_cn.gbk
Nls_lang = "simplified chinese_china.zhs16gbk"
2. Set the local client encoding:
Enter my computer, properties, advanced, environment variables, and add two items:
Lang = zh_cn.gbk
Nls_lang = "simplified chinese_china.zhs16gbk"
:
3. Reconnect sqlplus to view the data:
Display normal.
4. Set and reconnect PL/SQL developer:
In the menu of PL/SQL developer-> Tools-> preferences-> User Interface-> fonts, modify the font to a Chinese font.
Reconnect ,:
Display normal. OK!