[PerlChina] about unicode

Formalin Achilles formalin14 at gmail.com
Mon Dec 12 21:14:33 PST 2005


use Encode qw/encode decode/;
print decode('UTF-16LE', $line);


2005/12/13, 黄叶 <hylinux at gmail.com>:
>
> I have work, parse a text file,
> the text file is unicode(UTF-16) code file.
>
> I use the module named IO::File, I can read it, but I don't use regex.
> please help me .
> How i convert the unicode(utf-16) String to locale?
>
> thanks.
>
>
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
>



--
---------------------------
Achilles Xu
http://www.formalin14.org
-------------- next part --------------
q?????!???,r??m??m???????j+??j)r?j??j?r????9?w?G?g\???!???


More information about the China-pm mailing list