Bug report #13203

Updated by Giovanni Manghi about 6 years ago

When opening a shapefile the .cpg file is ignored and default is used instead (ISO8859-1 in my case when using Drag-and-Drop, UTF-8 when using file open dialog).



I saved a shapefile (point, line, or polygon) with UTF-8 encoding (.cpg with UTF-8 was created). When opening via Drag-and-Drop the .cpg file is ignored and file is being opened with wrong encoding (ISO8859-1 instead of UTF-8) resulting in broken chars. When opening via add vector layer (ctrl + shift + v) using open file dialog, UTF-8 is used as default (which can be changed), but .cpg file is ignored as well. I have to pick the proper encoding manually, if shapefile has different encoding then UTF-8.



tested using:

Windows 8.1 64bit

+ QGIS 2.8.3-Wien (64bit)

+ QGIS 2.10.1-Pisa (32bit)



Windows 7 64bit (different machine)

+ QGIS 2.10.1-Pisa (64bit)



Back