Encode::VN - Extra sets of Vietnamese encodings using Unicode Mapping .ucm files
This document describes version 0.06 of Encode::VN, released September 15, 2013.
use Encode;
use Encode::VN;
# VNI (ANSI)
$vni = encode("x-viet-vni", $utf8);
$utf8 = decode("x-viet-vni", $vni );Perl 5.7.3 and later ship with an adequate set of Vietnamese encodings, including the commonly used VISCII and CP1258 (also known as MacVietnamese) encodings.
However, there are additional Vietnamese encodings that are used and may be encountered; hence, this CPAN module tries to provide the rest of them.
This version includes the following encoding tables:
| Canonical | Alias | Description |
|---|---|---|
| x-viet-vni | /\bVNI(-ANSI)?$/i | VNI ANSI (Win/Unix) |
| x-viet-vni-ascii | /\bVNI-ASCII$/i | VNI ASCII (DOS) |
| x-viet-vni-mac | /\bVNI-Mac$/i | VNI Mac |
| x-viet-vni-email | /\bVNI-Email$/i | VNI Internet Mail (Win/Unix/Mac) |
| x-viet-vps | /\bVPS$/i | Vietnamese Professionals Society |
- Vietnamese Unicode SourceForge project: http://vietunicode.sourceforge.net/
- VNI Wikipedia page: http://en.wikipedia.org/wiki/VNI
- Mozilla VPS mappings: http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/vps.uf, http://lxr.mozilla.org/seamonkey/source/intl/uconv/ucvlatin/vps.ut
Encode
Maps for VNI are generated from the vnichar.htm file, courtesy of the VNI Sofware Comany, http://vnisoft.com/english/vnichar.htm.
Map for VPS is generated from the "Unicode & Vietnamese Legacy Character Encodings" page courtesy of the Vietnamese Unicode project on SourceForge, http://vietunicode.sourceforge.net/charset/.
Any reports of problems, comments or suggestions are most welcome.
Please report these on Github
John Wang johncwang@gmail.com
Copyright 2013-2016 by John Wang johncwang@gmail.com.
This software is released under the MIT license cited below.
Encode::VN is available under an MIT-style license. See LICENSE for details.
Encode::VN © 2013-2016 by John Wang