unicode.pl
require 'unicode.pl';
# EUC string to Unicode list (List of int)
@unicodeList = &unicode::e2u($eucString);
# Unicode list to EUC string
$eucString = &unicode::u2e(@unicodeList);
# Unicode list to UTF8 string
$utf8 = &unicode::UTF16toUTF8(@unicodeList);
# UTF8 string to Unicode list
@unicodeList = &unicode::UTF8toUTF16($utf8);
#
# Cache controls
#
&unicode::cache; # enable code caching (default). Convert faster, but it takes more memory.
&unicode::nocache; # disable code caching.
&unicode::flushcache; # clear code cache.