UTF-8 to GBK encoding problems, what are the good solutions
Source: Internet
Author: User
UTF-8 to GBK encoding problems, what are the good solutions? Iconv must be added with the & nbsp; IGNORE & nbsp; parameter to complete the conversion. Otherwise, an error will be aborted, while & nbsp; mb_convert_encoding is a file that can complete the conversion but can be converted, sometimes Chinese comments are replaced ???. I developed the system is the UTF-8 version, when the release of the UTF-8 to GBK encoding problem, what is the good solution?
Iconv must be added with the IGNORE parameter to complete the conversion. Otherwise, an error will be terminated. while mb_convert_encoding can complete the conversion, but sometimes the converted file will replace the Chinese comments ???.
I developed the system is the UTF-8 version, the release of the need to convert a GBK version, there is no good solution, please help. Share:
------ Solution --------------------
Do you know which characters cannot be converted?
Now, can we solve this problem?
You may post a base64 encoded string containing non-convertible characters.
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