On 8/31/07, Digger <[EMAIL PROTECTED]> wrote: snip > Does this mean I need to convert the string to utf8 at first then print it to > $fh? > Is there a way that I don't need to convert the string by hand?I mean when > printing,perl convert it > to utf8 automaticly. > Thank again. snip
It is my, possibly faulty, understanding that in modern versions of Perl all string data is in utf8 (there is no difference between ASCII and utf8 so long as you only use the first 127 characters so you might not notice, this is utf8's advantage over utf16*) and gets converted to whatever is needed by PerlIO using encodings. See http://perldoc.perl.org/PerlIO.html for more information. * again, this is my, possibly flawed, understanding of Unicode. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/