Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Write utf-8 to file?by borisz (Canon) |
on Feb 18, 2004 at 20:04 UTC ( [id://330038]=note: print w/replies, xml ) | Need Help?? |
Tell the form that you like the data in utf-8 with the accept_charset attribute. At best deliver the page with the form already in utf-8 since some browsers send the data back in the charset they receive the data. Now save the file with open my $fh, ">:utf8", $filename or die $!; read it in with open my $fh, "<:utf8", $filename or die $!;
Boris
In Section
Seekers of Perl Wisdom
|
|