Hej Corion and thanks for your reply !

As I've already wrote I'm saving a form data in a .csv file in order to manipulate it later on (say that I'll add some *ix commands later on to every record in a file). The thing is that when I use $qry->save, I get key=value pairs saved with URL encoded characters. I then manipulate that file to get it "back" to CSV format, but all of my Swedish letters (ISO-8859-1 formated from the beginning) are URL formated characters now.

I did then (after help from Anonimous Monk(s)) a subroutine which can manipulate the file once more to get proper formating for Swedish letters, but I was just asking if it was possible (somehow) to get characters URL decoded before file is saved.

Now Anonimous Monk made a great effort trying to explain to me some things, but I'm sorry, I'm just too stupid to understand it.

And because time is running and I have a work to do at my workplace (which besides has nothing to do with programming) I've chosen to manipulate a file one more time and run it through my subroutine that will get Swedish letters back in the right format.


In reply to Re^12: Save form data with decoded URL chars by SerZKO
in thread Save form data with decoded URL chars by SerZKO

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.