
Encode::CN::Utility - manipulations between Hanzi and its GBK, UTF8 and UNICODE encodings

This module provides a flexible interface to convert Chinese Hanzi to its GBK, UTF8 and UNICODE encodings, and vice versa. Meanwhile, it also can do conversation among the three encodings.
use Encodings::CN::Utility;
print hz2gbk("小"); #expected "d0a1"
print gbk2hz("d0a1"); #expected "小"

This module exports the following functions:
hz2gbk gbk2hz hz2utf8 hz2unicode utf82hz unicode2hz gbk2utf8 gbk2unicode utf82gbk utf82unicode unicode2gbk unicode2utf8
convert hanzi(s) to its gbk encodings
convert hanzi(s) to its utf8 encodings
convert hanzi(s) to its unicode encodings
convert gbk encodings to its corresponding hanzi(s)
convert utf8 encodings to its corresponding hanzi(s)
convert unicode encoding to its corresponding hanzi, which temporarily doesn't support string conversion
convert gbk encodings to the utf8 encodings of its correspoinding hanzi(s)
convert gbk encodings to the unicode encodings of its correspoinding hanzi(s)
convert utf8 encodings to the gbk encodings of its correspoinding hanzi(s)
convert utf8 encodings to the unicode encodings of its correspoinding hanzi(s)
convert unicode encodings to the gbk encodings of its correspoinding hanzi(s)
convert unicode encodings to the utf8 encodings of its correspoinding hanzi(s)

Sal Zhong(仲伟祥) zhongxiang721@gmail.com

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
