Re: [gdal-dev] A tools to change the ascii code upper 128 in shapefile

2014-07-24 Thread Andrea Peri
Hi Even thx for hint. I need to try to replace the chars because sometime the dbf of shapefile have mixed charset inside it. This is due to the usually practice of our shapefiles authors (many and differents) They very often fill the shapefile with copy/paste from other docs (excel, word, librero

Re: [gdal-dev] A tools to change the ascii code upper 128 in shapefile

2014-07-23 Thread Even Rouault
Andrea, I assume you're asking that because of encoding issues, right ? Hopefully there are better alternatives than what you are trying to do. 1) The mapserver shapefile provider doesn't take into account the character encoding that is written in the .dbf header or in the .cpg file. So it take

[gdal-dev] A tools to change the ascii code upper 128 in shapefile

2014-07-23 Thread Andrea Peri
Hi, Quite often the shapefile that are used to publish data on mapserver are filled with some characters upper 128 ascii code that will do some troble in the GetFeatureInfo response (in html). So I'm evaluating to start towrite some procedure to scan a shapefile (or a set of shapefiles) and chang