mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Merge branch 'develop' into pr/whitespace
This commit is contained in:
commit
1ab8f3470f
1 changed files with 8 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue