[Wiki Loves Monuments] erfgoed database codification is not utf-8

emijrp emijrp at gmail.com
Tue Sep 4 19:39:03 UTC 2012


I solved using

import oursql
conn = oursql.connect(db='p_erfgoed_p', host='sql.toolserver.org',
read_default_file=os.path.expanduser("~/.my.cnf"), charset="utf8",
use_unicode=True)
curs = conn.cursor(oursql.DictCursor)

2012/9/4 emijrp <emijrp at gmail.com>

> Hi;
>
> I think that the codification is iso-8859-1 and it is giving me errors
> when I try to save the data to disk. If you click any point you will see
> the ???? ???? ?????? chars http://toolserver.org/~emijrp/wlm/serbia/
>
> I never had this issue using utf-8.
>
> Regards
>
> --
> Emilio J. Rodríguez-Posada. E-mail: emijrp AT gmail DOT com
> Pre-doctoral student at the University of Cádiz (Spain)
> Projects: AVBOT <http://code.google.com/p/avbot/> | StatMediaWiki<http://statmediawiki.forja.rediris.es>
> | WikiEvidens <http://code.google.com/p/wikievidens/> | WikiPapers<http://wikipapers.referata.com>
> | WikiTeam <http://code.google.com/p/wikiteam/>
> Personal website: https://sites.google.com/site/emijrp/
>
>


-- 
Emilio J. Rodríguez-Posada. E-mail: emijrp AT gmail DOT com
Pre-doctoral student at the University of Cádiz (Spain)
Projects: AVBOT <http://code.google.com/p/avbot/> |
StatMediaWiki<http://statmediawiki.forja.rediris.es>
| WikiEvidens <http://code.google.com/p/wikievidens/> |
WikiPapers<http://wikipapers.referata.com>
| WikiTeam <http://code.google.com/p/wikiteam/>
Personal website: https://sites.google.com/site/emijrp/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/mailman/private/wikilovesmonuments/attachments/20120904/2fe8bec0/attachment.html>


More information about the WikiLovesMonuments mailing list