"Interpreter" PHP with text encoding transforms using Sjis-win instead of Sjis, using Eucjp-win instead of EUC-JP

Source: Internet
Author: User
"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 the text encoding transformation, if you want to use Shift_JIS, use Sjis-win instead of Sjis.
If you want to use EUC-JP, please use Eucjp-win instead of EUC-JP.

With win, even the Windows Extended text can be transformed smoothly.

In addition, other uses of the text encoding, designated as SJIS, EUC-JP also does not matter.
PHP can be used in the text encoding, with mb_list_encodings () can get the list of encodings.

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

Example: Text encoding that can be used in PHP
Passautowcharbyte2bebyte2lebyte4bebyte4lebase64uuencodehtml-entitiesquoted-printable7bit8bitucs-4ucs-4beucs-4leucs-2ucs-2 beucs-2leutf-32utf-32beutf-32leutf-16utf-16beutf-16leutf-8utf-7utf7-imapasciieuc-jpsjiseucjp-winsjis-wincp51932jisiso-202 2- 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-rar MSCII-8
  • Related Article

    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.