Plsql developer inserting Chinese garbled characters

Source: Internet
Author: User


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


Solution One

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,utf-8), then this reason is excluded. Otherwise, the Oracle character set should be reset to support the Chinese character set. Please search by yourself for specific methods.


Solution II

First, confirm that the Oracle character set supports Chinese characters, and then see if the Plsql character set and the Oracle character set are the same, and if the two character sets are different, it will cause the inserted in the Plsql to become garbled in the database. Set the character set of the Plsql developer, Tools->preferences->fonts->main fonts-> character set, such as:


Solution Three

If your plsql does not have the ability to set the Chinese character set, such as my plsql developer10, that can be resolved by setting the environment variable, adding a name to the environment variable called Nls_ The lang value is your Oracle character set (such as simplified Chinese_china. ZHS16GBK) system variables, restart the plsqldeveloper, the problem can be resolved.


Write it in the back.

The key to solving this problem is to understand the meaning of the character set, and the comrades who are not clear about the concept can search by themselves. About modifying the environment variables to solve this problem, involving Oralce on the character set selection of priority issues, interested comrades can be in-depth study.


Plsql developer inserting Chinese garbled characters

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.