Dbvisualizer solve Chinese garbled problem

Source: Internet
Author: User
Tags sybase dbvisualizer

In SQL Commander, if there is Chinese in the SQL statement, the display is ' mouth port '.

The solution is as follows:

Select PMingLiU in Tools->tool properties->general->appearance->fonts->sql Editor and choose PMingLiU on the grid as well.

When configured, Chinese can be displayed normally.

Query results in Chinese garbled:

in the connection URL, increase the

db_locale=en_us.819; client_locale=en_us.57372; newcodeset=gbk,8859-1,819

Example:
jdbc:informix-sqli://:/:informixserver=;D b_locale=en_us.819; client_locale=en_us.57372; newcodeset=gbk,8859-1,819

Add a character set to the database URL, where the format is not the same as in the code

Writing in Java:

    1. Jdbc:sybase:tds:hostname:port/dbname?charset=cp936&jconnect_version=4

Dbvisualizer in:

    1. jdbc:jtds:sybase://10.135.2.2:5000;databasename=abis;charset=cp936

There is also a way to join JDBC:JTDS:SYBASE://10.0.2.15:5000;DATABASENAME=QCSOFT;CHARSET=GB2312 server name as Databaseurl: 10.0.2.15 Port : 5000 database name: Qcsoft font Set: gb2312 is OK.

Using Dbvisualizer has always been a problem, that is, Chinese characters are always "mouth". The solution is: Dbvisualizer directory has a subdirectory of the JRE, delete the JRE subdirectory and found that Dbvisualizer will be able to display the normal Chinese. The Dbvisualizer may be started first by default with its own JRE, not the system's JRE.

Dbvisualizer solve Chinese garbled problem

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.