Ticket #2540 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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
Platform Version: Platform: All
Must Fix for Release: No 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

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

Change History

Changed 3 years ago by gislab

Changed 3 years ago by borysiasty

  • owner changed from borysiasty to cfarmer

Changed 3 years ago by lutra

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.

Changed 3 years ago by lutra

  • platform changed from Windows to All

Changed 3 years ago by alexbruy

  • status changed from new to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.