How to use phpmyadmin to import CSV files with Chinese characters is garbled

Source: Internet
Author: User
Tags how to use phpmyadmin
Using phpmyadmin to import CSV files is garbled in Chinese. using phpmyadmin to import CSV files is garbled in Chinese ?? Urgent !!! ------ Solution -------------------- is the character set of the file correctly selected? ------ Solution ------------------ is it garbled to open the Chinese characters in the csv file using a text tool? ------ Solution --------- using phpmyadmin to import CSV files with garbled Chinese characters
Using phpmyadmin to import CSV files is garbled in Chinese ??
Urgent !!!

------ Solution --------------------
Is the character set of the file correctly selected?
------ Solution --------------------
Is it garbled to open the Chinese characters in the csv file using a text tool?
------ Solution --------------------
Discussion

No
Reference:

Is it garbled to open the Chinese characters in the csv file using a text tool?

------ Solution --------------------
Then you need to re-export the file according to the unified encoding method and re-import the database...
Otherwise, import the csv file in other tools to see if it is normal. for example, sqlyog. or navicat.
------ Solution --------------------
It doesn't matter if you see garbled characters in the database, because the encoding during data inventory is affected by the encoding of mysql_server.

Php is written in first and then read out. it is critical to see if there is no chaos.

Ensure csv and operating system encoding, which is consistent with mysql_client, mysql_connect, and mysql_reuslt.
------ Solution --------------------
I doubt whether the encoding you use in PHPMYADMIN is correct.

You can write a program and import it to the system.
------ Solution --------------------
You can downgrade the php version to 5.2.x !!!

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.