Home > database >  The mysql database insert Chinese become garbled. God help me!
The mysql database insert Chinese become garbled. God help me!

Time:09-23

No baidu to find a solution to solve the

Read a character set are unified


It also added a
Value="HTTP://https://bbs.csdn.net/topics/jdbc:mysql://localhost:3306/xulin? UseUnicode=true& CharacterEncoding=utf-8 "/& gt;

Back end web add delete all no problem in Chinese

Front end to read database and inserted into the Chinese did not, inserted into a question mark.

Does anyone can help

CodePudding user response:

Type the correct front submitted, the background?
<meta HTTP - equiv="content-type" content="text/HTML. Charset=utf-8 "& gt; This have?

CodePudding user response:

Put into utf8 submitted file

CodePudding user response:

Submission of put into utf8
Built a database table to utf8
Submit a database connection to utf8
Page should also be set to utf8

CodePudding user response:

reference tjficcbw reply: 3/f
filing put into utf8
Built a database table to utf8
Submit a database connection to utf8
Page is set to utf8


reference 1st floor u014567183 response:
front submitted, background printing right?
<meta HTTP - equiv="content-type" content="text/HTML. Charset=utf-8 "& gt; This is


These all have

CodePudding user response:

Found the problem is the problem of transcoding, will turn to Chinese?
Var fdata=https://bbs.csdn.net/topics/serializeObject ($(" # registerform "));

SerializeObject=function (form) {
var o={};
$. Each (form serializeArray (), function (index) {
If (o [this [' name ']]) {
O [this [' name ']]=o [this [' name ']] + ", "+ this [' value '].
} else {
=o [this [' name ']] this [' value '];
}
});
The return o;
};
  • Related