About thinkphp's garbled characters in the IE browser for downloading files
Source: Internet
Author: User
If thinkphp is used to upload a file garbled by ie, ask a question. when THINKPHP is used to upload the file (with a Chinese name), if Firefox is used, the encoding is normal, however, if you use IE to upload the file name, it will be garbled. what is the problem ?, After uploading, it is better to change the file name to letters and numbers. it may be because thinkphp uses IE to upload files in the database.
Ask a question: when using think php to upload a file (with a Chinese name), if the Firefox browser is used, the encoding is normal, however, if I use the IE browser to upload the file name, it will be garbled. what is the problem?
------ Solution --------------------
It is better to change the file name to letters and numbers after uploading.
------ Solution --------------------
Save to database
------ Solution --------------------
It may be that the encoding on the WEB server is different from the Chinese encoding passed, but the resulting garbled code can be used for mb_convert_encoding transcoding to solve your problem.
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