PHP text encoding transformation using SJIS-win rather than SJIS, using eucJP-win rather than EUC-JP using SJIS-win rather than SJIS, use eucJP-win instead of EUC-JPFrom: pentan.infophpsjiswin_eucjpwin.html to specify the text encoding
"Translate" PHP with text encoding transforms using Sjis-win instead of Sjis, using Eucjp-win rather than EUC-JP
Using Sjis-win instead of Sjis, use Eucjp-win instead of EUC-JP
From:http://pentan.info/php/sjiswin_eucjpwin.html
In the designation of
Mb_convert_encoding (Addslashes ($u [+]), ' UTF-8 ', ' iso-8859-15,shift-jis,eucjp-win,sjis-win,iso-8859-1,utf-8 ')
This transcoding only the first valid, such as the first one is iso-8859-15, Western European code can be converted, but the
Mb_convert_encoding is used to convert the encoding. I have never understood the concept of program encoding, but now it seems a bit open. However, the English language generally does not have Encoding Problems. Only Chinese data can have this
For example, when you use Zend Studio or Editplus to write a program, you use gbk encoding. If the data needs to be imported into the database and the database is encoded as utf8, you need to encode and convert the data, otherwise, the database will
Mb_convert_encoding This function is used to convert the encoding. It turns out that the concept of program coding is not understood, but it seems to be a bit enlightened now. However, there is generally no coding problem in English, only the
Import 503-9256962-4382268 Failure-1
You have a error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 054-246-0787 ', ' JPS0001 ', ' 0243-BK ', ' iphone 4 with arm? (black) ', ' 1
About transcoding Issues
Import 503-9256962-4382268 Failure-1
You have a error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 054-246-0787 ', ' JPS0001 ', ' 0243-BK ', ' iphone 4
When crawling Web pages in PHP, you often need to encode the URL, and then use two functionsmb_detect_encoding - detects the encoding of a character. mb_convert_encoding - encoding of converted characters?
1 2 3 4 5 6 7 8 9 10 11 12 1
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.