Encode::VN - Extra sets of Vietnamese encodings
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
CP1258 (also known as
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
VNI are generated from the vnichar.htm file, courtesy of the VNI Sofware Comany, http://vnisoft.com/english/vnichar.htm.
VPS is generated from the "Unicode & Vietnamese Legacy Character Encodings" page courtesy of the Vietnamese Unicode project on SourceForge, http://vietunicode.sourceforge.net/charset/.
John Wang <email@example.com>
Copyright 2013 by John Wang <firstname.lastname@example.org>.
This software is released under the MIT license cited below.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.