MySQL hardcoding?
John Machin
sjmachin at lexicon.net
Thu Apr 17 18:00:21 EDT 2008
marexposed at googlemail.com wrote:
> I've got this error (see the path in last line)
>
> db=MySQLdb.connect(host='localhost',use_unicode = True, charset = "Windows-1251",user='root',passwd='12',db='articulos')
Can't help with the answer to your question, but this may stave off yet
another question:
The empirical evidence from other recent postings is that you are
mucking about with Spanish-language newspaper "articulos" on the web ...
so why charset = "Windows-1251", which is Cyrillic (i.e. Russian etc)??
Perhaps you mean 1252 which is Microsoft's latin1 with extras.
HTH,
John
More information about the Python-list
mailing list