Supported Character Encodings
Currently the following character encodings are supported by the
mbstring module. Any of those Character encodings
can be specified in the encoding parameter of
The following character encodings are supported in this PHP
- UHC (CP949)
- Windows-1251 (CP1251)
- Windows-1252 (CP1252)
- CP866 (IBM866)
* denotes encodings usable also in regular expressions.
Any php.ini entry which accepts an encoding name
can also use the values "auto" and
mbstring functions which accept an encoding
name can also use the value "auto".
If "pass" is set, no character
encoding conversion is performed.
If "auto" is set, it is expanded to
the list of encodings defined per the NLS.
For instance, if the NLS is set to Japanese,
the value is assumed to be
See also mb_detect_order()
Tomolimo (olivier dot moron at raynet-it dot com) ¶
5 months ago
Apart of this list, GB2312 encoding is also supported.
It is Chinese Simplified encoding which is now superseded by GB18030, but GB2312 is not in the list.
If you try to us it, the result will allright even if it is not in the list.
akniep at rayo dot info ¶
1 year ago
Use mb_list_encodings() to check if an encoding is supported by mbstring before using its functions for it.