linz / QGIS-AIMS-Plugin

QGIS Plugin for managing LINZ address information
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Unable to retire addresses on the road with macron letter #232

Open YingtingChen opened 4 years ago

YingtingChen commented 4 years ago

Our user got this error when retiring an address 7 Tāiko Place

Traceback (most recent call last):
 File "C:\Users\wsneddon\.qgis2\python\plugins\aims\AimsUI\DelAddressTool.py", line 106, in canvasReleaseEvent
  ('{}').format(fullAddress) + "\n will be marked for retirement?",
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u0101' in position 3: ordinal not in range(128)

This error would occur when users are retiring an address whose full address includes macronated letters (road name/locality/city).

A workaround is to remove the macronated letter in the road name and retire the address and change back the road name.