显示下拉菜单

mb_check_encoding()

« max | mb_convert_case »
<?php
$bool 
mb_check_encoding (
    
// [string $var = NULL]
    
?  // [string $encoding = mb_internal_encoding()]
);

// enter non ASCII characters in hex if $encoding is not UTF-8
?>
结果
$bool = true
示例
#1 mb_check_encoding  ("Hello world",
 
"ASCII")
#2 mb_check_encoding  ("está",
 
"ASCII")
#3 mb_check_encoding  ("\\xe0 is a grave",
 
"ISO-8859-1")