Get the App
SLTechnology News&Howtos  ›  Database  › 

Three Solutions of Chinese display garbled in MySQL5.7 under Windows Environment

Shulou Source: shulou.com Published: 2022-06-01 07:22:27 10月03日 Update

Recently, I encountered some problems in the process of migrating data from Oracle to MySQL, including the display of garbled Chinese characters.

After the data is imported successfully, the content of the Chinese field cannot be displayed properly. Later, it was found that the character set setting on the client side was correct, and the character set setting on the server side did not support Chinese characters.

Later, after testing, we found that we can solve this problem in three ways, from low to high:

Table-level database-level server level

1. Test environment Windows Server 2008 r2+MySQL Community Server (GPL) 5.7.16 I tested under the Windows Server 2008 R2 environment and created the test database hoegh.

~ the end~

Hoegh

2016.11.04

Tags: Character data test Chinese environment character set server side problem service garbled success content can be passed field client database method is at the level of Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno NVidia Microsoft Xiaomi