Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am posting serialized data to a url. sometimes the data may contain french word and it gets serialized as well. such as énfasis (incorrected french, i know) is escaped as %C3%A9nfasis and becomes énfasis when inserted to database.
the webapp is using iso-8859-1 as the encoding.
from my limited knowledge on this realm, i am guessing that the url is enocded as utf-8 and i need to convert %C3%A9nfasis to iso-8859-1 before inserting to db. am i right?
i tried using encode("iso-8859-1","%C3%A9nfasis") from Encode which doesn't do anything. I am probably poking in the dark and would appreciate some help from you.
thanks.
James.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question on encoding
by Ieronim (Friar) on Jan 24, 2007 at 16:02 UTC | |
|
Re: question on encoding
by ferreira (Chaplain) on Jan 24, 2007 at 16:39 UTC | |
by Anonymous Monk on Jan 24, 2007 at 21:19 UTC | |
by graff (Chancellor) on Jan 24, 2007 at 23:40 UTC | |
by Anonymous Monk on Jan 25, 2007 at 05:14 UTC |