mb_detect_orderSet/Get character encoding detection order
&reftitle.description;
mixedmb_detect_ordermixedencoding_listmb_detect_order()
Sets the automatic character
encoding detection order to encoding_list.
&reftitle.parameters;
encoding_listencoding_list is an array or
comma separated list of character encoding. See supported encodings.
If encoding_list is omitted, it returns
the current character encoding detection order as array.
This setting affects mb_detect_encoding and
mb_send_mail.
mbstring currently implements the following
encoding detection filters. If there is an invalid byte sequence
for the following encodings, encoding detection will fail.
UTF-8, UTF-7,
ASCII,
EUC-JP,SJIS,
eucJP-win, SJIS-win,
JIS, ISO-2022-JP
For ISO-8859-*, mbstring
always detects as ISO-8859-*.
For UTF-16, UTF-32,
UCS2 and UCS4, encoding
detection will fail always.
&reftitle.returnvalues;
When setting the encoding detection order, &true; is returned on success or &false; on failure.
When getting the encoding detection order, an ordered array of the encodings is returned.
&reftitle.examples;
mb_detect_order examples
]]>
Example showing useless detect orders
&reftitle.seealso;
mb_internal_encodingmb_http_inputmb_http_outputmb_send_mail