How to tell if stored in a database is garbled

Source: Internet
Author: User

Developers say that reading from the database is???

The database table character set is UTF8, and set names UTF8, why is it read or???

You can tell??? is stored in the database , how to verify it?

1. Temporarily open General_log to see what the developer is inserting

2. Packet Capture analysis

Character set test case, operating system character set is UTF8

The character set of the table Set names Save Chinese Read Chinese
Latin1 Latin1 No error

Latin1 Read Normal

UTF8 garbled

Latin1 Utf8 Error Empty
Utf8 Latin1 No error

Latin1 Read Normal

UTF8 garbled

Utf8 Utf8 No error

Latin1 garbled

UTF8 Read normal

Gbk Latin1 Error Empty
Gbk Utf8 No error

UTF8 Read normal

Latin1 garbled

How to tell if stored in a database is garbled

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.