SerZKO has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks !
I'm using CGI.pm save method to save form data in a file:
The problem is that file is saved with URL encoded Swedish letters, even if client is set to ISO 8859-1 and header from server is set to samesub sparaKunddata { open (KOF, ">$konfil") or die "Kan inte \xF6ppna filen $konfil. $!"; flock (KOF, 2) or die "Kan inte l\xE5sa filen $konfil. $!"; $qry-> save (*KOF) or die "Kan inte spara filen $konfil. $!"; close KOF;}
. Is there any way to recode chars before file is saved with save() method or do I have to manipulate file after it's being saved ? Prefferably without using any non-core moduleprint $qry->header(-type => "text/html; charset=iso-8859-1;", -cookie => $kaka);
Thanks in advance !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Save form data with decoded URL chars
by Anonymous Monk on Aug 08, 2012 at 10:19 UTC | |
by SerZKO (Beadle) on Aug 08, 2012 at 12:59 UTC | |
by Anonymous Monk on Aug 08, 2012 at 13:16 UTC | |
by SerZKO (Beadle) on Aug 08, 2012 at 13:26 UTC | |
by Anonymous Monk on Aug 08, 2012 at 13:30 UTC | |
by Anonymous Monk on Aug 08, 2012 at 13:40 UTC | |
|