[mapserver-users] character encoding
Hi all I am having some issues with special characters in my application (sure I am not the first!) and wondered what the best way is to 'clean up' the data so I know it is specifically in a given format say UTF-8 or ISO. My source data was from KML - shp using ArcGIS 10 (though who knows what the kml format was!). One would assume if using ArcMap on a UK machine would give you an ISO output Should I copy the characters back into the attribute table via ArcGIS (but what program should I use to copy the characters from - Word...). I did use the ArcGIS export registry setting to export my supposed ISO shapfile to UTF-8 format (but the label rendering is wrong). Any ideas would be much appreciated! Many thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] character encoding
On 11-09-07 12:59 PM, Chris Jackson wrote: Hi all I am having some issues with special characters in my application (sure I am not the first!) and wondered what the best way is to 'clean up' the data so I know it is specifically in a given format say UTF-8 or ISO. My source data was from KML - shp using ArcGIS 10 (though who knows what the kml format was!). One would assume if using ArcMap on a UK machine would give you an ISO output Should I copy the characters back into the attribute table via ArcGIS (but what program should I use to copy the characters from - Word...). I did use the ArcGIS export registry setting to export my supposed ISO shapfile to UTF-8 format (but the label rendering is wrong). Any ideas would be much appreciated! Hi Chris, My quick thoughts are: - use ogr2ogr (the GDAL/OGR library) to do your conversion from KML to shp (if you are on Windows, the MS4W product can help you with that http://www.maptools.org/ms4w/index.phtml?page=downloads.html) - another option is to use the KML in its native format with MapServer (http://www.mapserver.org/input/vector/kml.html), which is also possible with MS4W - if by application problems you mean map label problems with encoded characters, this howto should help you: http://www.mapserver.org/mapfile/labelencoding.html Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] character encoding
QGIS has quite nice possibilities to select the encoding when opening and writing the various supported vector data formats (including e.g. shape and KML). armin On 07/09/2011 17:59, Chris Jackson wrote: Hi all I am having some issues with special characters in my application (sure I am not the first!) and wondered what the best way is to 'clean up' the data so I know it is specifically in a given format say UTF-8 or ISO. My source data was from KML - shp using ArcGIS 10 (though who knows what the kml format was!). One would assume if using ArcMap on a UK machine would give you an ISO output Should I copy the characters back into the attribute table via ArcGIS (but what program should I use to copy the characters from - Word...). I did use the ArcGIS export registry setting to export my supposed ISO shapfile to UTF-8 format (but the label rendering is wrong). Any ideas would be much appreciated! Many thanks Chris ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] character encoding shape file with german umlaute
Hi List, I had some trouble with getting correct character encoding to work with MapServer and with german Umlauten (ÄÜÖ and ß). For a PostGIS layer I got it fixed setting the permanent variable 'client encoding' to LATIN1 does the trick ;) The db otherwise is utf8 , the system german locale (which has impact really anyway for he most part). However I have now trouble also with labels from a shape file based MapServer WMS which show screwed up as some symbols . The attributes are showing correctly inside the dbf table. The same layers just 'worked' on the old server - however something must be different on the new one since that is just came up with the move. Is there anything I can look for to coax MapServer to correctly encode label test annotations ? I tried setting ENCODING 'LATIN1' in the label to no avail .. Cheers Karsten Terra GIS LTD www.terragis.net ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Character encoding in Query Results
Hi All, I am using a shapefile that contians Turkish charaters (iso-8859-9) in my MapServer application. I can display Labels properly on the map with the following configuration: LAYER . LABEL MINDISTANCE 150 PARTIALS false TYPE truetype FONT serif SIZE 10 POSITION CC OUTLINECOLOR 254 254 254 COLOR 0 0 0 ENCODING ISO-8859-9 END END My problem arise when I get the result of my queries. The query results contain wrong character as in the following. NamePopulation Area Dumlup�nar 270268km2 The character that has ? mark is wrong. I have tried to solve this problem by defining LAYER_ENCODING in LAYER section, and ENCODING in MAP section but the result was the same. Is there any suggestion to get the query results in ISO-8859-9 format? Thanks in advance. -- View this message in context: http://n2.nabble.com/Character-encoding-in-Query-Results-tp3601960p3601960.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users