pyshapelib branch

Didrik Pinte dpinte at
Wed Mar 14 01:00:32 CET 2007

Le mercredi 14 mars 2007 à 00:37 +0100, Bram de Greve a écrit :
> Can you specifically test for the Unicode issues.  The python
> documentation says that Unicode should be supported by the methods
> I've used, but if this is really true, I do not know (yet).  I haven't
> tried =) 

Concerning the unicode issue, the problem is more concerned by the
dbflib than shapelib.

When trying to open a file with a unicode name, I get the following
error :

An unhandled exception occurred:
'ascii' codec can't encode character u'\xe9' in position 23: ordinal not
in range(128)
(please report to

Traceback (most recent call last):
  File "/home/did/projets/python/thuban/bramz/Thuban/UI/",
line 297, in invoke_command
line 121, in Execute
    apply(self.function, (context,) + self.args + args, kw)
  File "/home/did/projets/python/thuban/bramz/Thuban/UI/",
line 1071, in call_method
    apply(getattr(context.mainwindow, methodname), args)
  File "/home/did/projets/python/thuban/bramz/Thuban/UI/",
line 573, in AddLayer
    store = self.application.Session().OpenShapefile(filename)
line 296, in OpenShapefile
    store = ShapefileStore(self, filename)
line 201, in __init__
    self.dbftable = table.DBFTable(filename)
line 89, in __init__
    self.dbf = dbflib.DBFFile(filename)
  File "/home/did/projets/python/thuban/bramz/Thuban/../Lib/",
line 5, in __init__
    self.this = apply(dbflibc.new_DBFFile,args)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 23: ordinal not in range(128)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url :

More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)