slyr icon indicating copy to clipboard operation
slyr copied to clipboard

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 58: illegal multibyte sequence

Open Tonynovtop opened this issue 2 years ago • 4 comments

Hello, I got an UnicodeDecodeError error when i use the 'Convert Esri style to QGIS style xml' of SLYR in QGIS. the detial information of error is: 2022-04-13T19:47:46 WARNING Traceback (most recent call last): File "D:\OSGeo4W/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py", line 241, in executeAlgorithm ok, message = alg.canExecute() File "C:\Users/yiwuz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\slyr_community\qgis_plugin\algorithms\style_to_gpl.py", line 81, in canExecute if not Extractor.is_mdb_tools_binary_available(): File "C:\Users/yiwuz/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\slyr_community\bintools\extractor.py", line 149, in is_mdb_tools_binary_available for line in proc.stdout: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 58: illegal multibyte sequence

QGIS veriosn: 3.16.16 Python:3.9 Platform:windows 10 mdbtools:https://github.com/lsgunth/mdbtools-win SLYR: installed from QGIS plugin. I have set 'Settings -> Options -> SLYR -> set-MDB-tools-path'.

image

Tonynovtop avatar Apr 13 '22 12:04 Tonynovtop

Can you share the document you are trying to convert?

nyalldawson avatar Apr 13 '22 19:04 nyalldawson

@nyalldawson of course,here is the file:test.zip,but i think the source of the problem is not in this ducument,because the error happened before i entered the process panel of "Convert ESRI style to QGIS style xml".

Tonynovtop avatar Apr 14 '22 01:04 Tonynovtop

OK, this one is working fine in the licensed SLYR version, so you'll need to wait for the next drop of functionality from the licensed to community version to land.

nyalldawson avatar May 02 '22 02:05 nyalldawson

OK,thank you for your reply.

Tonynovtop avatar May 02 '22 02:05 Tonynovtop