Oracle nchar cx_oracle

Source: Internet
Author: User

Nls_characterset = zht16mswin950

Nls_nchar_characterset = al16utf16

 

Select, insert nchar should use N 'hangzhou'

Select * From factest where fac_uname = n' Liu Ke '"

Insert into factest values ('20140901', '20160901', n'hangzhou ')

9i has a problem with using N 'shanghai', but there is no problem with over 10 Gbit/s.

 

 

 

In python, the non-Unicode version of cx_oracle Security indicates that nchar encoding is normal.

 

In python, The cx_oracle Security Unicode version nchar encoding bit is not normal.

"Liu Ke" in data statistics"

Will be labeled as "Medical Science"

 

Nls_lang =. utf8

The nls_lang on the client end must be set to utf8. Otherwise, the problem may occur.

Ora_nchar_literal_replace = true

 

 

Server:

Database Character Set: zht16mswin950

Database country character set: al16utf16

Client:

Nls_lang: al32utf8

Environment variable:Ora_nchar_literal_replace = true

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.