1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00
- small UTF-8 thing


git-svn-id: file:///svn/phpbb/trunk@6971 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2007-02-07 04:02:00 +00:00
parent 333b3515ed
commit 0fc55efc7d
4 changed files with 96 additions and 6 deletions

View File

@@ -719,7 +719,7 @@ function utf8_recode($string, $encoding)
{
$ret = @iconv($encoding, 'utf-8', $string);
if (isset($ret[0]))
if (!empty($ret))
{
return $ret;
}
@@ -730,7 +730,7 @@ function utf8_recode($string, $encoding)
{
$ret = @mb_convert_encoding($string, 'utf-8', $encoding);
if (isset($ret[0]))
if (!empty($ret))
{
return $ret;
}
@@ -741,7 +741,7 @@ function utf8_recode($string, $encoding)
{
$ret = @recode_string($encoding . '..utf-8', $string);
if (isset($ret[0]))
if (!empty($ret))
{
return $ret;
}