Created
November 25, 2014 13:00
-
-
Save wilhelmberg/36a6cbb931bbf254f7a6 to your computer and use it in GitHub Desktop.
Recursively create CPG files for your shapefiles to get correct encoding when opening them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
::http://ssrebelious.blogspot.co.at/2012/03/qgis-and-gdal19-encoding-issue.html | |
::http://plugins.qgis.org/plugins/shapefile_encoding_fixer/ | |
::https://github.com/borysiasty/shapefile_encoding_fixer | |
::http://en.wikipedia.org/wiki/Character_encoding#Common_character_encodings | |
::http://en.wikipedia.org/wiki/Code_page#Noteworthy_code_pages | |
::1250 - Central European | |
::1251 - Cyrillic | |
::1252 - Western European | |
::1253 - Greek | |
::1254 - Turkish | |
::1255 - Hebrew | |
::1256 - Arabic | |
::1257 - Baltic languages | |
::1258 - Vietnamese | |
::http://ss64.com/nt/syntax-args.html | |
::d=drive | |
::p=path | |
::n=name witout extension | |
for /R %%f in (*.dbf) do echo 1252> %%~dpnf.cpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment