Sal Zhong (仲伟祥) > Encode-CN-Utility-0.4 > Encode::CN::Utility

Download:
Encode-CN-Utility-0.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.4   Source  

NAME ^

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

SYNOPSIS ^

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 "小"

METHODS ^

This module exports the following functions:

hz2gbk gbk2hz hz2utf8 hz2unicode utf82hz unicode2hz gbk2utf8 gbk2unicode utf82gbk utf82unicode unicode2gbk unicode2utf8

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

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

SEE ALSO ^

Encode

syntax highlighting: