Plsql developer inserts Chinese garbled characters, plsqldeveloper

Source: Internet
Author: User

Plsql developer inserts Chinese garbled characters, plsqldeveloper


Address: http://yanwushu.sinaapp.com/plsql-developer-chinese-charactereset/


Solution 1

The oracle character set cannot store Chinese characters. The following statement queries the oracle character set.

Selectuserenv ('language') from dual;

If the query results support Chinese characters (such as gbk and UTF-8), this is the reason for troubleshooting. Otherwise, you should reset the oracle character set to a Chinese character set. Please search for specific methods by yourself.


Solution 2

First, confirm that the oracle Character Set supports Chinese characters, and then check whether the plsql character set is the same as the oracle character set. If the two character sets are different, the Chinese characters inserted in plsql will become garbled in the database. Set the character set of plsql developer, tools> preferences> fonts> main fonts> character set, for example:


Solution 3

If your plsql does not have the Chinese Character Set setting function, for example, my plsql limit 10 does not, you can use the environment variable setting method to solve this problem, add a system variable named NLS_LANG to your oracle character set (such as SIMPLIFIED CHINESE_CHINA.ZHS16GBK) to the environment variable and restart plsqldeveloper to solve the problem.


Post

The key to solving this problem lies in understanding the meaning of character sets. comrades who are not clear about this concept can search for it by themselves. How to solve this problem by modifying environment variables involves oralce's priority in character set selection. If you are interested, you can study it in depth.


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.