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:


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *