Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make Oracle client display Chinese

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to make the Oracle client display Chinese, the article is very detailed, has a certain reference value, interested friends must read it!

The character set of Oracle is determined by the parameter NLS_LANG:

The NLS_LANG parameter consists of the following parts:

NLS_LANG=_.

The meanings of each part of NLS_LANG are as follows:

LANGUAGE specifies the language, date, mid-month, and day display format used by Oracle messages

TERRITORY specifies currency and number formats, regions, and habits for calculating days of the week and date

CHARACTERSET controls the character set used by client applications

So how to make the client of Oracle display Chinese? The premise is that the character set of Oracle is super that supports Chinese character set. Our commonly used character sets are gbk and utf8.

After that, we define the NLS_LANG variable at the operating system level to support Chinese, which is not enough. We need to keep the character sets of the server, the client, the system and the terminals we use consistent.

Generally speaking, we have the following two choices for NLS_LANG, and the terminal fonts corresponding to these two choices need to be adjusted accordingly:

The terminal font corresponding to export NLS_LANG='simplified chinese_china.al32utf8' is adjusted to utf8.

The terminal font corresponding to export NLS_LANG='simplified chinese_china.zhs16gbk' is adjusted to gbk.

The above is all the contents of the article "how to make the Oracle client display Chinese". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report