There are several encodings in php

(*-*)浩
Release: 2023-02-26 18:38:01
Original
3297 people have browsed it

The current mbstring module supports the following character encodings. Any of these character encodings can be specified as the encoding parameter in the mbstring function.

There are several encodings in php

The character encodings supported by this PHP extension are as follows:

UCS-4*

UCS-4BE (Recommended learning:PHP video tutorial)

UCS-4LE*

UCS-2

UCS-2BE

UCS-2LE

UTF-32*

UTF-32BE*

UTF-32LE*

UTF-16*

UTF-16BE*

UTF-16LE*

UTF-7

UTF7-IMAP

UTF-8*

ASCII*

EUC-JP*

SJIS*

eucJP-win*

SJIS-win*

ISO-2022- JP

ISO-2022-JP-MS

CP932

CP51932

SJIS-mac** (Alias: MacJapanese)

SJIS-Mobile#DOCOMO** (Alias: SJIS-DOCOMO)

SJIS-Mobile#KDDI** (Alias: SJIS-KDDI)

SJIS-Mobile#SOFTBANK** (Alias: SJIS-SOFTBANK)

UTF-8-Mobile#DOCOMO** (Alias: UTF-8-DOCOMO)

UTF-8-Mobile#KDDI-A**

UTF-8-Mobile#KDDI-B** (alias: UTF-8-KDDI)

UTF-8-Mobile#SOFTBANK** (alias: UTF-8-SOFTBANK)

ISO-2022-JP-MOBILE#KDDI** (Alias: ISO-2022-JP-KDDI)

JIS

JIS-ms

CP50220

CP50220raw

CP50221

CP50222

ISO-8859-1*

ISO-8859-2*

ISO-8859 -3*

ISO-8859-4*

ISO-8859-5*

ISO-8859-6*

ISO-8859-7 *

ISO-8859-8*

ISO-8859-9*

ISO-8859-10*

ISO-8859-13*

ISO-8859-14*

ISO-8859-15*

ISO-8859-16*

byte2be

byte2le

byte4be

byte4le

BASE64

HTML-ENTITIES

7bit

8bit

EUC -CN*

CP936

GB18030**

HZ

EUC-TW*

CP950

BIG -5*

EUC-KR*

UHC (CP949)

ISO-2022-KR

Windows-1251 (CP1251)

Windows-1252 (CP1252)

CP866 (IBM866)

KOI8-R*

KOI8-U*

ArmSCII-8 (ArmSCII8)

* indicates that the encoding can also be used in regular expressions.

** indicates that this encoding is available since PHP 5.4.0.

Any php.ini entry that accepts an encoded name can also use the "auto" and "pass" values. mbstring functions that accept encoding names can also use the value "auto".

If "pass" is set, the character encoding will not be converted.

If "auto" is set, it will expand to each character encoding list defined in NLS. For example, assuming NLS is set to Japanese, the value will be considered "ASCII,JIS,UTF-8,EUC-JP,SJIS".

The above is the detailed content of There are several encodings in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!