Home > Backend Development > PHP Tutorial > Modify the encoding of mysql table when php appears garbled_PHP tutorial

Modify the encoding of mysql table when php appears garbled_PHP tutorial

WBOY
Release: 2016-07-13 17:53:43
Original
997 people have browsed it

I installed a zen-cart friendly link plug-in today. The plug-in on the Chinese website is not easy to use. If you want to find it, you have to download the latest version from the English website.
It’s better to speak English.

Pay attention to the encoding of the table when importing the table. If the default encoding of mysql is not utf8, garbled characters may occur. When I was using it, the Chinese link in the plug-in was garbled.

The following is how to modify the encoding.
1. Export data and table structure respectively.
2. Modify charset=gbk or charset gbk in the table structure to charset=utf8 or charset utf8 (use the editor to replace the encoding part in batches)
3. Import the table structure.
4. Import data.

That’s OK.


Author: youaregoo

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478008.htmlTechArticleI installed a zen-cart friendly link plug-in today. The plug-in for the Chinese website is not easy to use. If you want to find it, , go to the English website to download the latest version. It’s better to speak English. In the import table...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template