|XP is just a number|
question on encodingby Anonymous Monk
|on Jan 24, 2007 at 15:42 UTC||Need Help??|
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.