mb_detect_order Set/Get character encoding detection order &reftitle.description; mixedmb_detect_order mixedencoding_listmb_detect_order() Sets the automatic character encoding detection order to encoding_list. &reftitle.parameters; encoding_list encoding_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; <function>mb_detect_order</function> examples ]]> Example showing useless detect orders &reftitle.seealso; mb_internal_encoding mb_http_input mb_http_output mb_send_mail