Skip to content

Commit

Permalink
try to ignore illegal input characters
Browse files Browse the repository at this point in the history
  • Loading branch information
hidehalo committed Mar 11, 2018
1 parent c52f52b commit baefc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function utf8_to_cop($unicode)
*/
function cop_to_utf8($codepoint)
{
$symbol = iconv('UCS-4BE', 'UTF-8', pack('N', $codepoint));
$symbol = iconv('UCS-4BE', 'UTF-8//IGNORE', pack('N', $codepoint));

return $symbol;
}
Expand Down

0 comments on commit baefc26

Please sign in to comment.