Re: using Encode module

2003-12-11 Thread Nick Ing-Simmons
Dana Sharvit - M [EMAIL PROTECTED] writes: Hi , I am using the Encode module (perl 5.8)to convert a string from utf8 to big 5. There is something that I do not understand that I thought you may help with: The input to the program is a file that contains a utf8 string, The encoding works properly

Re: using Encode module

2003-12-11 Thread Autrijus Tang
On Thu, Dec 11, 2003 at 01:03:47PM +0200, Dana Sharvit - M wrote: what I dont understand is two things: 1.why do I need to read the string using IO ( open my $in1, :encoding(utf8), \$str;) 2.why do I need to use the encode function before the from_to function($octet = encode(utf8, $_);) The