On Thu, Jan 19, 2006 at 06:25:30PM +0800, Orlando Andico wrote: > 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.
Have you tried utf8::upgrade()? -- $_=q:; # SHERWIN # 70;72;69;6e;74;20; 27;4a;75;73;74;20; 61;6e;6f;74;68;65; 72;20;50;65;72;6c; 20;6e;6f;76;69;63; 65;27;:;;s=~?(..); ?=pack q$C$,hex$1; ;;;=egg;;;;eval;;; _________________________________________________ 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

