> cursor.execute("SELECT id from templinks where url=%s", (URL,) ) Yes i already try this before ask.
URL.decode('latin-1').encode('utf-8') to transcode it into utf-8. i know this but how do you know the html encoding's a latin-1 ? Html encoding is to be iso-8859-9 or ascii or cp1254 ... For this reason URL.decode('latin-1').encode('utf-8') must give me error. I'm trying now and whet it finished i write the result here. Thank you very much for your helps. -- http://mail.python.org/mailman/listinfo/python-list