Update string.utl.php
This commit is contained in:
parent
e4efe7358d
commit
b2688fc6b8
|
@ -22,7 +22,7 @@ if(!function_exists("parse_tel_number_kr")) {
|
||||||
|
|
||||||
if(!function_exists("get_converted_string")) {
|
if(!function_exists("get_converted_string")) {
|
||||||
function get_converted_string($str, $to_charset, $from_charset, $method="iconv") {
|
function get_converted_string($str, $to_charset, $from_charset, $method="iconv") {
|
||||||
$output = false;
|
$output = "";
|
||||||
|
|
||||||
switch($method) {
|
switch($method) {
|
||||||
case "iconv":
|
case "iconv":
|
||||||
|
@ -35,6 +35,8 @@ if(!function_exists("get_converted_string")) {
|
||||||
$output = mb_convert_encoding($str, $to_charset, $from_charset);
|
$output = mb_convert_encoding($str, $to_charset, $from_charset);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$output = $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user