阅读背景:

PHP:用UTF-8字符串中最接近的7位ASCII等效值替换umlauts

来源:互联网 

What I want to do is to remove all accents and umlauts from a string, turning "lärm" into "larm" or "andré" into "andre". What I tried to do was to utf8_decode the string and then use strtr on it, but since my source file is saved as UTF-8 file, I can't enter the ISO-8859-15 characters for all umlauts - the editor inserts the UTF-8 characters.What I want to do is to remove all accents and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: