Update string.utl.php
This commit is contained in:
parent
2ed40e017d
commit
d2b871cb5a
|
@ -29,12 +29,7 @@ if(!check_function_exists("get_converted_string")) {
|
||||||
$result = false;
|
$result = false;
|
||||||
|
|
||||||
if($form_charset == "detect") {
|
if($form_charset == "detect") {
|
||||||
$fn = check_invalid_function(array(
|
if(check_function_exists(array("mb_detect_encoding", "mb_detect_order"))) {
|
||||||
"NO_FUNCTION_MB_DETECT_ENCODING" => "mb_detect_encoding",
|
|
||||||
"NO_FUNCTION_MB_DETECT_ORDER" => "mb_detect_order",
|
|
||||||
));
|
|
||||||
|
|
||||||
if($fn == -1) {
|
|
||||||
$from_charset = mb_detect_encoding($str, mb_detect_order(), true);
|
$from_charset = mb_detect_encoding($str, mb_detect_order(), true);
|
||||||
} else {
|
} else {
|
||||||
$from_charset = "ISO-8859-1";
|
$from_charset = "ISO-8859-1";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user