SysBase FAQ [set character set] And sysbase FAQ

Source: Internet
Author: User
Tags sybase

SysBase FAQ [set character set] And sysbase FAQ

1) character encoding problems:(2402) Error converting characters into server's character set, Some character9s) cocould not be conver[Mainly causes insert and drop exceptions]

Perform encoding settings after SysBase is installed [very troublesome]

How to view server and client character sets
View the server character set:
Run the following command in the isql environment: [environment where SQL statements can be executed]
1> sp_helpsort
2> go
View the client character set:
Run the following command in the isql environment:
1> select @ client_csname
2> go
Sybase Chinese garbled because the default encoding set is ISO-1, in Sybase Central v4.3 Chinese display as garbled, the character set is changed to CP936, Chinese garbled solution.

Character Set replacement method:
Open Sybase Central to connect to the database, open the syscharsets table of the master database, and check whether CP936 data exists in the name column. If not, go to step 2. If yes, step 3. [My own situation is as follows]

II,Run --> CMD to enter the DOS window command prompt, enter the Directory D: \ sybase \ charsets \ cp936 (this is my Sybase installation directory), and enter the command charset-Usa-P-S binary. srt cp936

III,In step 1, open the syscharsets table of the master database and check that the id of the name column CP936 is 171. Click on the database server name on the left (my server name is GZLCL) right-click --> properties --> server configuration ", select" Langguages "in" display configuration parameters ", set" default character set id "to 171, and then restart the service.
Or the isql command line: sp_configure "default character set id", 171
IV,Configure the locales. dat file: the file path is D: \ sybase \ locales. dat. Open it in notepad and find "[NT]" to change its default character set to locale = default, us_english, cp936

In this way, Chinese garbled characters in Sybase Central can be solved.

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: 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.