GeoWebCache / geowebcache

GeoWebCache is a tile caching server implemented in Java that provides various tile caching services like WMS-C, TMS, WMTS, Google Maps, MS Bing and more
https://www.geowebcache.org
343 stars 281 forks source link

Wrong character encoding in GetCapabilities #166

Closed flansch closed 8 years ago

flansch commented 11 years ago

I'm using the GeoWebCache integrated into GeoServer 2.2. When accessing the GetCapabilities document of the GeoWebCache WMS service, german umlauts in the returned document are encoded in ISO-8859-1 encoding while it should be UTF-8 according to the xml declaration:

<?xml version="1.0" encoding="UTF-8"?>

If accessing GetCapabilities of GeoServer directly, the characters are encoded correctly.

For example, for the letter ä inside the word Amtsgebäude the hex character code E4 is returned while it should be C3 A4.

GeoWebCache: getcap_encoding_gwc

GeoServer: getcap_encoding_geoserver

ndufrane commented 11 years ago

Hi,

This problem is not only for german umlauts. The same problem exist with other "special" character (used in by exemple in french) ex: é,à,ç,...

This problem does not allow Internet Explorer to parse correctly the GetCapabilities document requested with ajax.

Regards

fvanderbiest commented 11 years ago

Same problem here with French accentuated chars.

clefk2 commented 10 years ago

i confirm for usual french accentuated chars "éàè..." i add layers with the REST interface, when a layer name contains an accent "test éèà test" it is correctly recorded in the gwc configuration file. I am able to do any REST calls correctly but WMS service does not correctly handle the accent.

not that the bug is not reproductible with jetty, wich use UTF-8 by default, but you can reproduct it easily with tomcat.

anderserla commented 9 years ago

Were having the same problems in Geoserver 2.5. Does anyone have any plans on fixing this issue, or could anyone give a hint on how to fix it?

smithkm commented 8 years ago

Should have been fixed in GeoWebCache 1.6 https://github.com/GeoWebCache/geowebcache/commit/abfbfd944bb1d445acaee3daae1c88211f3bcdc3