ASP MySQL appears the question mark garbled solution _ Application Skill
Source: Internet
Author: User
So the problem is because
Database character set, table character set, field character set is set to: Gbk_chinese_ci
Note the database connection string inside the Stmt=set Names ' GBK ', must have this sentence.
The following is the ASP link MySQL code. Please note that there is a GBK at the back. This is the encoding type that specifies the link. According to the data you use
The library encoding type. Modify it into your own.
If you use a high version of MySQL, often in such cases, Chinese often garbled, including in PHP.
Method of Reference:
Set the font for MySQL.
Join in Mysql.ini
[MySQL]
default-character-set=gb2312
[Client]
default-character-set=gb2312
[Mysqld]
default-character-set=gb2312//or GBK
After the registration has changed, the database before the change has no effect. The contents of the Db.opt file in these database directories are changed to
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