[mapserver-users] Re character encoding

2011-09-07 Thread Chris Jackson
Hi Jeff

I may well try that!  The trouble is I have a stack of attributes in a
Access db which I was joining onto the KML data.  I need the complete
dataset for an ArcGIS Server data service anyway so a shapefile seemed to be
a good way to join it all and assist with that (will end up in SDE) and my
mapfile dataset too.  I had already read the page you mentioned and all is
in place (I am using the MS4W PHP/mapscript set-up on IIS) and my original
ISO flavoured version labels up nicely - it just breaks some of the query
functionality (though it shouldn't - which is why I wonder if some of the
characters are badly formed)!

Thanks for the advice

Chris

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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RE: character encoding shape file with german umlaute

2011-04-28 Thread Jeff McKenna
For any future readers, this is documented at 
http://mapserver.org/mapfile/labelencoding.html


-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





On 11-04-28 4:57 AM, karsten vennemann wrote:

No stop.
setting
ENCODING 'LATIN1'
in the label fixed it :)
Sorry for the disturbance
Karsten


*From:* karsten vennemann [mailto:kars...@terragis.net]
*Sent:* Thursday, April 28, 2011 00:55
*To:* 'mapserver-users@lists.osgeo.org'
*Subject:* 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 thepermanent 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] RE: character encoding shape file with german umlaute

2011-04-28 Thread karsten vennemann
No stop. 
setting
   ENCODING 'LATIN1'
in the label fixed it :)
 
Sorry for the disturbance
Karsten



  _  

From: karsten vennemann [mailto:kars...@terragis.net] 
Sent: Thursday, April 28, 2011 00:55
To: 'mapserver-users@lists.osgeo.org'
Subject: 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