Plsql Chinese garbled problem solution

Source: Internet
Author: User

1. View server-side encoding

A Select Userenv (' language ') from dual;

b The result I actually found was: American_america. Zhs16gbk

2, execute the statement select * frm v$nls_parameters;

A See if the nls_language in the parameter item in the first row corresponds to the same value in the first step.

b If it is not the same, you need to set the environment variable, otherwise the Plsql client uses the same encoding and server encoding, when inserting Chinese will appear garbled.

3. Setting Environment variables

A Computer à property à advanced system settings à environment variable à new

b Set variable named Nls_lang, variable value: The first step to find the value of my: American_america. Zhs16gbk

4, restart the plsql, insert data Normal

Plsql Chinese garbled problem solution

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.