Bug report #11174
Qgis processing toolbox is breaking encoding of output shapefile
|Affected QGIS version:||2.4.0||Regression?:||No|
|Operating System:||windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19488|
I' m using "Distance to nearest hub" in Qgis processing toolbox. The input layers have utf-8 data source encoding and attributes are in greek characters and they are displayed properly.
After running the tool the output's attibutes are like: �.� ����������
Also I cannot use a field that contains greek characters for "Hub Layer Name Attribute".
[Errno 9] Bad file descriptor
I test it under windows 7 64bit and arch linux. The problem occurs only under windows, my qgis info:
QGIS version 2.4.0-Chugiak QGIS code revision 8fdd08a Compiled against Qt 4.7.1 Running against Qt 4.7.1 Compiled against GDAL/OGR 1.11.0 Running against GDAL/OGR 1.11.0 Compiled against GEOS 3.4.2-CAPI-1.8.2 Running against GEOS 3.4.2-CAPI-1.8.2 r3921 PostgreSQL Client Version 8.3.10 SpatiaLite Version 4.1.1 QWT Version 5.2.1 PROJ.4 Version 480 QScintilla2 Version 2.6.2
#2 Updated by Andrey Isakov over 7 years ago
Also affected by this issue.
Seems like QGIS uses a system default encoding for all Processing toolbox outputs. So for data-sources with any encoding other than system QGIS Processing toolbox converting attributes in outputs to system encoding.
I think this is not right behaviour. QGIS should keep data-source encoding for outputs.