> -----Original Message-----
> From: [EMAIL PROTECTED]
> Sent: Fri, 31 Aug 2007 15:07:21 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: create a uft8 file
> 
> On 8/31/07, Digger <[EMAIL PROTECTED]> wrote:
>> Hello,
>> 
>> I want to create an utf8 file and write some content (like html codes)
>> to it.
>> How to do it? thanks.
> snip
> 
> Modern Perl handles utf8 natively.  You can do things like:
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> open my $fh, ">", "outfile"
>         or die "Could not open outfile for writing:$!\n";
> 

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.

____________________________________________________________
GET FREE 5GB ONLINE STORAGE - Safely store your documents, photos and music 
online!
Visit http://www.crawler.com/storage to find out more!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to