qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.61k stars 3.01k forks source link

Encoding problems with Processing toolbox #22665

Closed qgib closed 7 years ago

qgib commented 8 years ago

Author Name: vedar sum (vedar sum) Original Redmine Issue: 14704 Affected QGIS version: 2.18.4 Redmine category:processing/qgis


new description

Some qgis algs create outputs where the attribute tables have encoding issues. Examples are buffer and dissolve. Maybe others are also affected (an example that works as expected in "voronoi polygons").

Sample data attached.

old description Hi,

I'm using QGIS 2.14.1 on Windows 10 through OSGeo4W setup.

I noticed that if I process a vector layer (i.e. UTF-8 encoded geojson) with QGIS algorithm (i.e. crop, Voronoi, etc) through Processing toolbox, result layer has attribute table with question marks instead expected characters. While if I run the same algorithm through QGIS menu, result layer is correctly encoded.

I noticed also that this affects GDAL/OGR algorithms, besides QGIS algorithms, while not SAGA algorithms.

For reference I open a question first here: http://gis.stackexchange.com/questions/190137/qgis-algoritms-have-encoding-problems


qgib commented 8 years ago

Author Name: Anita Graser (@anitagraser)


qgib commented 8 years ago

Author Name: Anita Graser (@anitagraser)


qgib commented 8 years ago

Author Name: Alexander Bruy (@alexbruy)


Canyou share sample dataset?

qgib commented 8 years ago

Author Name: Alexander Bruy (@alexbruy)


qgib commented 8 years ago

Author Name: Giovanni Manghi (@gioman)


closing for lack of feedback, please reopen if necessary.


qgib commented 7 years ago

Author Name: Saber Razmjooei (@saberraz)


In my case, the problem was with path.

The bug is present in 2.18 and 2.14.


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


Saber Razmjooei wrote:

In my case, the problem was with path.

The bug is present in 2.18 and 2.14.

Tested on 2.18.4 on Windows special chars in paths seems to be not an issue for QGIS algs. They are an issue for GDAL/OGR ones (will file a different ticket).

Encoding problems in outputs do not seem to be a problem with GDAL/OGR algs or with all QGIS algs, but certainly a few QGIS algs are affected, like dissolve and buffer (and maybe others).



qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Alexander Bruy (@alexbruy)


Can't reproduce with latest 2.18 using attached sample data and native buffer and dissolve algorithms.


Some qgis algs create outputs where the attribute tables have encoding issues. Examples are buffer and dissolve. Maybe others are also affected (an example that works as expected in "voronoi polygons").

Sample data attached.

old description Hi,

I'm using QGIS 2.14.1 on Windows 10 through OSGeo4W setup.

I noticed that if I process a vector layer (i.e. UTF-8 encoded geojson) with QGIS algorithm (i.e. crop, Voronoi, etc) through Processing toolbox, result layer has attribute table with question marks instead expected characters. While if I run the same algorithm through QGIS menu, result layer is correctly encoded.

I noticed also that this affects GDAL/OGR algorithms, besides QGIS algorithms, while not SAGA algorithms.

For reference I open a question first here: http://gis.stackexchange.com/questions/190137/qgis-algoritms-have-encoding-problems to new description

Some qgis algs create outputs where the attribute tables have encoding issues. Examples are buffer and dissolve. Maybe others are also affected (an example that works as expected in "voronoi polygons").

Sample data attached.

old description Hi,

I'm using QGIS 2.14.1 on Windows 10 through OSGeo4W setup.

I noticed that if I process a vector layer (i.e. UTF-8 encoded geojson) with QGIS algorithm (i.e. crop, Voronoi, etc) through Processing toolbox, result layer has attribute table with question marks instead expected characters. While if I run the same algorithm through QGIS menu, result layer is correctly encoded.

I noticed also that this affects GDAL/OGR algorithms, besides QGIS algorithms, while not SAGA algorithms.

For reference I open a question first here: http://gis.stackexchange.com/questions/190137/qgis-algoritms-have-encoding-problems

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


Alexander Bruy wrote:

Can't reproduce with latest 2.18 using attached sample data and native buffer and dissolve algorithms.

confirmed, if some other tool is affected please reopen this one.