Selection error...
Guilherme Polo
ggpolo at gmail.com
Sun Oct 21 08:23:07 EDT 2007
2007/10/21, Abandoned <besturk at gmail.com>:
>
> > 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 ?
Try using chardet to detect the encoding
> 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
>
--
-- Guilherme H. Polo Goncalves
More information about the Python-list
mailing list