-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding CP852 missing in windows instalation #36871
Comments
This setting was moved to Layer Properties - Source tab. |
@nyalldawson The character encoding settings was moved, but CP852 still missing on Win10. In previous QGIS versions, OGR decoded CP852 correctly with the "ignore shapefile encoding declaration" option. Without this option QGIS can't decode CP852 on Win10. |
hi @AlzbetaGardonova @kadarivan, it seems the QGIS encodings list is taken from the Qt codecs list, and CP852 seems missing in current Qt version (5.11.2) used by OSGeo4W at least on Windows with Italian locale. |
CP852/IBM852 is a very old codepage from the DOS era. Just some legacy program export data in this codepage (like Hungarian Public Road Company's databank). No one use it as system default encoding. |
hi @nyalldawson, I did some testing and it seems to me that actually it's impossible to properly read a CP852 encoded shapefile using QGIS 3.10.6 on Windows, while it is possible using QGIS 3.10.1. This test_852.zip is a zipped point shapefile, test_852.shp, with a single text field, "test852", containing a single record with the following 4 char in hex: 0x61, 0x62, 0x63, 0x8A, as the field value. The test_852.cpg file contains the string "852". In the Code page 852 the hex chars 0x61, 0x62, 0x63, 0x8A should be decoded as On Windows 7 64 bit (Italian language),
So it seems this regression may have be introduced in the effort of fixing other shapefile encoding issues like with PR #34381 / #34607 |
You are right @kadarivan, |
the conversion over to GDAL's API Resolves missing text codecs like CP852 on windows builds. These were previously available, but then Qt upstream dropped the ICU library from their windows builds, and accordingly a whole bunch of older text codecs are no longer available by default on the windows builds. Fixes qgis#36871
the conversion over to GDAL's API Resolves missing text codecs like CP852 on windows builds. These were previously available, but then Qt upstream dropped the ICU library from their windows builds, and accordingly a whole bunch of older text codecs are no longer available by default on the windows builds. Fixes qgis#36871
the conversion over to GDAL's API Resolves missing text codecs like CP852 on windows builds. These were previously available, but then Qt upstream dropped the ICU library from their windows builds, and accordingly a whole bunch of older text codecs are no longer available by default on the windows builds. Fixes #36871
**There is no possibility to set encoding CP 852 to layer in windows instalation. **
Code CP 852 is not in the list of encodings. But is available in ubuntu instalation. If I have shapefile with this encoding defined in cpg file the encoding pre-set to System. QGIS seems like ignore cpg file. There is no more possibility so set this by settings ->datasource->ignore shapefile encoding declaration in this version.
QGIS and OS versions
QGIS 3.10.6 on win 10 and ubuntu 18.04
The text was updated successfully, but these errors were encountered: