Opened 14 years ago

Closed 14 years ago

#2540 closed bug (worksforme)

Join by attributes throws an error if a table contains fields with cyrrilics

Reported by: gislab Owned by: cfarmer
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc: dr, alexbruy
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

Though I understand this is not smart for the person to create such fields, field names in language other than English are typical and better be handled.

See attachment for testing.

Error:

При выполнении Python-кода возникла ошибка:

Traceback (most recent call last):
  File "c:\OSGeo4w\apps\qgis-dev\python\plugins\fTools\tools\doJoinAttributes.py", line 139, in inFile
    self.updateTableFields()
  File "c:\OSGeo4w\apps\qgis-dev\python\plugins\fTools\tools\doJoinAttributes.py", line 151, in updateTableFields
    self.joinField.addItem(unicode(i))
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8f in position 0: ordinal not in range(128)

Attachments (1)

test.dbf (105.4 KB ) - added by gislab 14 years ago.

Download all attachments as: .zip

Change History (5)

by gislab, 14 years ago

Attachment: test.dbf added

comment:1 by borysiasty, 14 years ago

Owner: changed from borysiasty to cfarmer

comment:2 by lutra, 14 years ago

while working today I spotted this python error when clicking on the "join by attributes" tool.

Traceback (most recent call last):
  File
"/usr/share/qgis/python/plugins/fTools/tools/doJoinAttributes.py", line
77, in jupdate
    self.jonField.clear()
AttributeError: 'Dialog' object has no attribute 'jonField'

Python version:
2.6.4 (r264:75706, Dec  7 2009, 19:02:09) 
[GCC 4.4.1]

nevertheless the error wasn't critical as it was possible to close the window and use normally the tool. I had a number of vectors in the project at the time the error appeared.

Clicking the tool in an empty project or with other data in it didn't worked to reproduce the error.

comment:3 by lutra, 14 years ago

Platform: WindowsAll

comment:4 by alexbruy, 14 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.