[mapserver-users] Encoding problems in GetCapabilities-document with WMS_VERSION 1.3.0

Stefan Schantz SSchantz at BfS.de
Tue Aug 9 07:21:19 EDT 2011


Hi,
I am running Mapserver 5.6.5.
If I request the GetCapabilities with WMS_VERSION 1.1.1, I get a 
XML-Document encoding "UTF-8" and the German Umlaute like üäö and so on 
are shown correctly.
---------------------------
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM 
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
[
<!ELEMENT VendorSpecificCapabilities EMPTY>
]> <!-- end of DOCTYPE declaration -->

<WMT_MS_Capabilities version="1.1.1">

<!-- MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS 
INPUT=SHAPEFILE -->

<Service>
<Name>OGC:WMS</Name>
<Title>Hintergrundkarten Deutschland</Title>
<Abstract>Karte zum ÜÜberblick üüber Deutschland basierend auf DGM250 
u.a.</Abstract>
-----------

But if I change the request to WMS-VERSION 1.3.0 , my browser shows an 
error "xml not well formed" and the German Umlaute are not correct.
---------------------

<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<WMS_Capabilities version="1.3.0"  xmlns="http://www.opengis.net/wms"   xmlns:sld="http://www.opengis.net/sld"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xmlns:ms="http://mapserver.gis.umn.edu/mapserver"   xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd  http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd  http://mapserver.gis.umn.edu/mapserver http://10.130.63.11/cgi-bin/mapserv?map=/data/mapserver/map/de_vector.map&amp;service=WMS&amp;version=1.3.0&amp;request=GetSchemaExtension">

<!-- MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE -->

<Service>
  <Name>WMS</Name>
  <Title>Hintergrundkarten Deutschland</Title>
  <Abstract>Karte zum ��berblick ��ber Deutschland basierend auf DGM250 u.a.</Abstract>
...

------------------
Is there anything I can do?

Thanks!
Best regards from Munich!
Stefan


More information about the mapserver-users mailing list