1.2.535. Iconv With Translit¶
The transliteration feature of iconv() depends on the underlying operating system to support it.
Sometimes, the operating system doesn’t have the needed dataset to do the conversion, and produces this error.
This feature is also a portability issue.
<?php
$string = iconv('utf-8', 'utf-8//TRANSLIT', $source);
?>
See also iconv().
1.2.535.2. Connex PHP features¶
1.2.535.2.1. Suggestions¶
Use an OS that supports TRANSLIT with iconv
Remove the usage of TRANSLIT
1.2.535.2.2. Specs¶
Short name |
Portability/IconvTranslit |
Rulesets |
|
Exakat since |
2.1.6 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |