Hello,
What's the standard way to encode a whole document to utf8 (or other
encoding mode)?
For example, I want to encode a document which is gb2312 encoded
originally to utf8, I could do:
perl -MEncode -ne 'print encode("utf8",decode("gb2312",$_))' 1.txt > 2.txt
(here 1.txt is the gb2312 one, 2.txt is utf8 one.)
But is there a better or more standard way to do it?
Thanks for this and for all the before of your helps.
// Xiao-Lan
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/