|more useful options|
Re: question on encodingby ferreira (Chaplain)
|on Jan 24, 2007 at 16:39 UTC||Need Help??|
Then you interpret those bytes as a UTF-8 string:
to finally coerce it to ISO-8859-1 via:
With regard to
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?that's all right if your database waits for the text to be in ISO-8859-1. Most databases have some default encoding and some columns may have a declared encoding (which overrides the database default). And yet there can be options in the SQL statements to control the encoding of the text being fed to your tables. Try it out and, if you got into trouble, bring the issue here and tell more about the database and settings you're using.