PHP uses SJIS-win instead of SJIS for text encoding conversion, and uses eucJP-win instead of EUC-JP.

Source: Internet
Author: User
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 transformation. if you want to use Shift_JIS, use the SJI text encoding in PHP to convert the use of SJIS-win instead of SJIS, use eucJP-win instead of EUC-JP
Use SJIS-win instead of SJIS, use eucJP-win instead of EUC-JP
From: http://pentan.info/php/sjiswin_eucjpwin.html

To use Shift_JIS, use SJIS-win instead of SJIS.
To use the EUC-JP, use eucJP-win instead of EUC-JP.

With Windows, you can smoothly change the extended Windows text.

In addition, other purposes of the text encoding, designated as SJIS, EUC-JP does not matter.
PHP can use text encoding. use mb_list_encodings () to obtain the encoding list.

By the way, in HTML, you can specify the Shift_JIS, EUC-JP (alias for Extended Unix Code Packed Format for Japan ),
UTF-9 and so on.

Example: text encoding that can be used in PHP
passautowcharbyte2bebyte2lebyte4bebyte4leBASE64UUENCODEHTML-ENTITIESQuoted-Printable7bit8bitUCS-4UCS-4BEUCS-4LEUCS-2UCS-2BEUCS-2LEUTF-32UTF-32BEUTF-32LEUTF-16UTF-16BEUTF-16LEUTF-8UTF-7UTF7-IMAPASCIIEUC-JPSJISeucJP-winSJIS-winCP51932JISISO-2022-JPISO-2022-JP-MSWindows-1252ISO-8859-1ISO-8859-2ISO-8859-3ISO-8859-4ISO-8859-5ISO-8859-6ISO-8859-7ISO-8859-8ISO-8859-9ISO-8859-10ISO-8859-13ISO-8859-14ISO-8859-15ISO-8859-16EUC-CNCP936HZEUC-TWBIG-5EUC-KRUHCISO-2022-KRWindows-1251CP866KOI8-RArmSCII-8

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.