Mysql-based Crystal Reports and garbled Solutions

Source: Internet
Author: User

Basic MySQL parameter settings

Create a database with the UTF-8 character set

 
Two tables are created. The test1 character set is gb2312 and test2utf8 is UTF-8.
 

The data in the table is in Chinese.

Follow these steps to create a report using MySQL:
 

The driver string we use is:

Driver = {MySQL ODBC 3.51 driver}; server = localhost; database = test; user = root; Password = root; option = 3;

 

The report generated at this time is like this,

 

In the program, the effect is as follows:

 

Solution:

Install MySQL 5.1 Driver

Http://dev.mysql.com/downloads/connector/odbc/5.1.html

The driver connection string is:

Driver = {MySQL ODBC 5.1 Driver}; server = localhost; database = test; user = root; Password = root; option = 3;

 

Report effect:

Program display effect:
 

Reference: http://www.connectionstrings.com/default.aspx? Carrier = MySQL
An additional article that may be useful:
MySQL garbled characters are successfully solved! Http://faq.csdn.net/read/216877.html

-- Over --

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.