Query: mb_detect_encoding
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MB_DETECT_ENCODING(3) 1 MB_DETECT_ENCODING(3) mb_detect_encoding - Detect character encodingSYNOPSISstring mb_detect_encoding (string $str, [mixed $encoding_list = mb_detect_order()], [bool $strict = false])DESCRIPTIONDetects character encoding in string$str.PARAMETERSo $str - The string being detected. o $encoding_list -$encoding_list is list of character encoding. Encoding order may be specified by array or comma separated list string. If $encoding_list is omitted, detect_order is used. o $strict -$strict specifies whether to use the strict encoding detection or not. Default is FALSE.RETURN VALUESThe detected character encoding or FALSE if the encoding cannot be detected from the given string.EXAMPLESExample #1 mb_detect_encoding(3) example <?php /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str); /* "auto" is expanded according to mbstring.language */ echo mb_detect_encoding($str, "auto"); /* Specify encoding_list character encoding by comma separated list */ echo mb_detect_encoding($str, "JIS, eucjp-win, sjis-win"); /* Use array to specify encoding_list */ $ary[] = "ASCII"; $ary[] = "JIS"; $ary[] = "EUC-JP"; echo mb_detect_encoding($str, $ary); ?>SEE ALSOmb_detect_order(3). PHP Documentation Group MB_DETECT_ENCODING(3)
Related Man Pages |
---|
mb_convert_encoding(3) - php |
mb_convert_case(3) - php |
strtr(3) - php |
mb_convert_kana(3) - php |
mb_strcut(3) - php |
Similar Topics in the Unix Linux Community |
---|
How to call pl/sql in unix script |
String Manipulation Question.... |
string checking |
Deletion of starting commas |
Reverse of a string |