|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Write utf-8 to file?by borisz (Canon) |
| on Feb 18, 2004 at 15:04 UTC ( [id://330038]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||||||||||