There's more than one way to do things | |
PerlMonks |
question on encodingby Anonymous Monk |
on Jan 24, 2007 at 15:42 UTC ( [id://596267]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, 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.
Back to
Seekers of Perl Wisdom
|
|