Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of garbled codes in Korean in mysql

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to solve the problem of mysql Korean garbled code", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to solve the problem of mysql Korean garbled code.

The problem of garbled codes in mysql Korean

Because what I set up includes Korean, I would like to talk about the experience of solving the problem of garbled code in Korean here. Other Asian languages are pretty much the same.

To sum up, there are a few main steps (the red font is your own defined content, which can be replaced):

Www.2cto.com

1. When you set up the database, declare the default settings:

Create database database_name DEFAULT CHARSET=utf8

I use the utf8 format here, and I think you should try this format first. The first thing I tried was a special Korean setting, but it didn't solve the problem.

two。 After you have established the database, use the following command to view the status of the setting language:

SHOW VARIABLES LIKE 'character_set_%'

3. Set the value of other "variable_name" to also utf8:

Www.2cto.com

SET character_set_client = utf8

SET character_set_connection = utf8

SET character_set_results = utf8

SET character_set_database=utf8

SET character_set_server=utf8

Then you can start to set up a table under this database, insert values, and display Korean. I think it can also be displayed in Chinese.

At this point, I believe that everyone on the "mysql Korean garbled problem how to solve" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report