It is well known that GET in PHP cannot deliver Chinese characters, and the delivered data are usually garbled characters. However, sometimes we need to deliver Chinese characters. Take the recent project "Sharing/Collection" of Bangkejia as an example. The author encountered such a problem when writing a PHP program. After the Chinese title was transferred to Sina Collection, it became garbled.
How to solve this problem? Us:
Normal writing (garbled characters):
Copy to ClipboardQuoted content: [www.bkjia.com] @$title_this = $_GET["title"];Change to the following code (normal):
Copy to ClipboardQuoted content: [www.bkjia.com] @$title_this = iconv("UTF-8","gb2312",$_GET["title"]);Now that the problem has been solved, don’t forget to check out Bangke Home’s new project - Share & Collection. http://www.bkjia.com/res/share/