1024programmer PHP Brother, I input Chinese characters in the text box, but when reading the data in the php program, it prompts garbled characters.

Brother, I input Chinese characters in the text box, but when reading the data in the php program, it prompts garbled characters.

I enter Chinese characters in the text box, but when the data is read in the PHP program, it prompts garbled characters
I enter Chinese characters in the text box, but when the data is read in the PHP program, it prompts garbled characters. Additional questions: My database and A different encoding is used on the web page. The code also uses an iconv() function for conversion, but when debugging, it still prompts garbled characters. Please tell me how to solve it?

——Solution——————–
Modify the browser’s encoding, determine the header encoding, and determine the encoding of the php file.

——Solution——————–
Please Give the main code snippet

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/brother-i-input-chinese-characters-in-the-text-box-but-when-reading-the-data-in-the-php-program-it-prompts-garbled-characters/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索