Use mb_list_encodings() to check if an encoding is supported by mbstring before using its functions for it.
Currently the following character encodings are supported by the
mbstring
module. Any of those Character encodings
can be specified in the encoding
parameter of
mbstring
functions.
The following character encodings are supported in this PHP extension:
* denotes encodings usable also in regular expressions.
Any php.ini entry which accepts an encoding name
can also use the values "auto
" and
"pass
".
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
"ASCII,JIS,UTF-8,EUC-JP,SJIS
".
See also mb_detect_order()
Use mb_list_encodings() to check if an encoding is supported by mbstring before using its functions for it.
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.
Regards,
Tomolimo