Merge branch 'develop' into pr/whitespace

This commit is contained in:
Kijin Sung 2023-01-30 21:49:10 +09:00
commit 1ab8f3470f

View file

@ -623,6 +623,7 @@ function utf8_check($str)
function utf8_clean($str)
{
// Check if the input is a valid UTF-8 string.
$str = (string)$str;
if (!utf8_check($str))
{
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);