Home > Back-end >  High marks for help, a character encoding
High marks for help, a character encoding

Time:09-17

DataModule2 - & gt; NetHTTPRequest1 - & gt; Post
(" http://examsys.slzy.com//instructor_signup.php ", strings);//, NULL, TEncoding: : UTF8);
//DataModule2 - & gt; NetHTTPRequest1 - & gt; Post
//(" http://localhost:5257//instructor_signup.php ", strings);

Figure province was written in PHP server, NetHTTPRequest sends a request, use the LINUX host, SQLITE database, the database encoding UTF8 by default, PHP file on LINUX host encoding saved as UTF8, PHP script adds the internal encoding mb_internal_encoding (" utf-8 ");

If ($_POST [' qualification ']==='a') {
$qualif_i=1;
} elseif ($_POST [' qualification ']==='no') {
$qualif_i=0;
}
If ($_POST [' external_type]===' ') {
$extype_i=1;
} elseif ($_POST [' external_type]==='no') {
$extype_i=0;
}

POST up the data contains Chinese characters in the PHP script, but stored in the database is garbled, then POST intact after return to display or gibberish, wondering what circumstance, the eldest brother, please advice,
  • Related