Sunday, March 05, 2006

Convert Vietnamese from UTF8 to ASCII

If you need to convert from UTF8/Unicode Vietnamese with intonation/ascent signs like acute, grave, circumflex, tilde, dot below, hook above, and more to just plain old ASCII without any extras, or to VIRQ format. Here is a PHP class that performs the conversion. Some examples:
an toàn => an toan
áo giáp => ao giap
xúc phạm => xuc pham
Source Code: Sample Usage:

0 Comments:

Post a Comment

<< Home