Solve sybase Chinese and Case sensitivity issues (server side) (utf8 garbled)

Source: Internet
Author: User
Tags sybase

For information about how to set the sybase Chinese Character Set, most of the information found on the internet is set with commands in the isql environment. The procedure is as follows:

(The installation path of SYBASE is c: sybase)

How to install the cp936 Character Set

3. In the ISQL Environment

1> select name, id from syscharsets

2> go

Find the id corresponding to name cp936 (assuming 117)

4.1> sp_configure "default character set id", 117

2> go

5. Restart the server twice.

(Note: after the first startup, the server will automatically go down and need to be restarted for the second time)

In addition to this method, you can select it on the sybase graphic management interface. I think this method is the most intuitive. When dealing with Chinese problems, we generally set the sybase server's character set to utf8, while the client uses cp936 for access. Set the character set on the server first.

First, open the Server Config interface.

Figure 1

Select to configure Adaptive Server...

Figure 2

Select the server and click "continue.

Figure 3

Enter the password and click "continue" to enter the management interface.

Figure 4

Click "language" to go to the character set configuration page.


Figure 5

This interface is already set. Click "Add/Remove" next to the character set to add the server-side character set.

Figure 6

Add the Unicode 3.1 UTF-8 Character Set. Click "Set Default" next to the character set to set the default character set.

Figure 7

Click OK in Figure 7 and figure 5 to save the settings. Then, because you want to access the database without case sensitivity, you need to set the character sorting order.

Click the "Set Default" button under the sorting order in Figure 5 to go to the various sorting management interfaces of the utf8 character set, which lists the descriptions of various sorting orders.

Figure 8

Select the sorting method selected in figure 8. The complete description statement cannot be seen because the dialog box size cannot be changed. You must restart your computer and start the sybase data service after you confirm the operation. In this way, the Chinese Character Set of the server is case-insensitive.

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.