-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
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
The options of IBM iconv does not work and outputs the NOTICE logs #791
Comments
Can you confirm that |
Thanks, PowerKiKi. |
Hi PowerKiKi. Check program iconv-test.php<?php
if (extension_loaded('iconv')) {
echo 'loaded iconv'. '<br>' ;
}else{
echo 'unload iconv'. '<br>' ;
}
//both
iconv('UTF-8', 'UTF-16LE//IGNORE//TRANSLIT', 'x');
//igcore only
iconv('UTF-8', 'UTF-16LE//IGNORE', 'x');
//translit only
iconv('UTF-8', 'UTF-16LE//TRANSLIT', 'x');
exit(0); Browser outputloaded iconv
Notice: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-16LE//IGNORE//TRANSLIT' is not allowed in /www/zendcore/htdocs/phptest/ushida/iconv-test.php on line 10
Notice: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-16LE//IGNORE' is not allowed in /www/zendcore/htdocs/phptest/ushida/iconv-test.php on line 13
Notice: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-16LE//TRANSLIT' is not allowed in /www/zendcore/htdocs/phptest/ushida/iconv-test.php on line 16 |
Hi PowerKiKi. |
This is:
What is the expected behavior?
For example, if you decide whether the iconv options works.
What is the current behavior?
My system (IBM i) dose not work "// IGNORE // TRANSLIT" options on iconv.
Then, it outputs the NOTICE log.
What are the steps to reproduce?
The reason is that the iconv's options is always specified in the following code.
Enviroments
The text was updated successfully, but these errors were encountered: