this actually works in Perl (5.8+):

my $var = "繁體中文";
print "I have no idea what this Chinese stuff means: ", $var, "\n";

(you should see the Chinese characters on your Linux box if you have the ttfonts-zh_CN package installed)

however YAML::Syck converts the Chinese text to escaped unicode, e.g.
"\xE7\xB9\x81\xE9\xAB\x94\xE4\xB8\xAD\xE6\x96\x87"

which is understandable, but i can't figure out how to convert the escaped form back to UTF-8 (Encode module doesn't seem to do it) because i want to re-display it after it backed-and-forth via YAML.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to