We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I encountered this problem when I use this code.
iconv(): Detected an illegal character in input string
Then i change
$converted_text = iconv($sourceCharset, $targetCharset//IGNORE, $text);
to
$converted_text = iconv($sourceCharset, "$targetCharset//IGNORE", $text);
And then pop up the follow error.
iconv(): Detected an incomplete multibyte character in input string.
Final i change the code to
$converted_text = htmlentities($text, ENT_QUOTES, $targetCharset);
It worked fine.
Is there a better way to solve this problem.
The text was updated successfully, but these errors were encountered:
Use mb_convert_encoding instead, like this:
mb_convert_encoding(strip_tags($text, $targetCharset, $sourceCharset)
Sorry, something went wrong.
No branches or pull requests
I encountered this problem when I use this code.
Then i change
to
And then pop up the follow error.
Final i change the code to
It worked fine.
Is there a better way to solve this problem.
The text was updated successfully, but these errors were encountered: