php man page for mb_detect_encoding

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 encoding

SYNOPSIS
string mb_detect_encoding (string $str, [mixed $encoding_list = mb_detect_order()], [bool $strict = false])
DESCRIPTION
Detects character encoding in string$str.
PARAMETERS
o $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 VALUES
The detected character encoding or FALSE if the encoding cannot be detected from the given string.
EXAMPLES
Example #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 ALSO
mb_detect_order(3). PHP Documentation Group MB_DETECT_ENCODING(3)
Related Man Pages
mb_convert_encoding(3) - php
mb_strtolower(3) - php
mb_internal_encoding(3) - php
mb_convert_kana(3) - php
mb_strtoupper(3) - php
Similar Topics in the Unix Linux Community
How to call pl/sql in unix script
String Manipulation Question....
Deletion of starting commas
how to find the character encoding of a file in hp_ux
Need help to find total counts in a string