Bug report #11174

Qgis processing toolbox is breaking encoding of output shapefile

Added by Leonidas Liakos over 9 years ago. Updated almost 9 years ago.

Status:Rejected
Priority:Normal
Assignee:-
Category:Processing/Core
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

Description

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".
It returns

[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

Related issues

Duplicates QGIS Application - Bug report #6299: Sextante output do not have the same Encoding as the inputs Closed 2012-09-03

History

#1 Updated by Leonidas Liakos over 9 years ago

  • Assignee deleted (Victor Olaya)

#2 Updated by Andrey Isakov over 9 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.

#3 Updated by Alexander Bruy over 9 years ago

  • Resolution set to duplicate
  • Status changed from Open to Rejected

Duplicates #6299

#4 Updated by Giovanni Manghi almost 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF