[Yann Dirson, 2011-02-03]
> In [6]: print "%s" % e.getName()
> ------> print("%s" % e.getName())
> Échecs

please do not use ipython to test encoding related issues, it has
problems...

> UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in position 
> 0: ordinal not in range(128)

.encode('utf-8')?
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to