All formats

Text encoding libraries for PHP

PHP also has the iconv extension with iconv() (the C iconv API), which supports //TRANSLIT for approximating characters. There’s no maintained statistical detector for PHP; mbstring’s detection only checks which candidates are valid, so order your candidate list carefully.