[Mapbender-users] MB 2.5: Capabilities with Umlauts:
monitorCapabilities always reports "WMS is not up to date."
Schoenhammer.Herbert at Regensburg.de
Thu Nov 27 08:51:21 EST 2008
with your help I got module MonitorCapabilities working yesterday, but I had a problem in detail:
All my own wms are always recognized as "WMS is not up to date."
I did several experiments with updating / loading the capabilities in my guis. No effect.
So I made some debugging.
In my circumstances the problem and solution is the character encoding (again).
Changes in class_monitor.php:
original line 74 $this->localXML = $this->getCapabilitiesDocByWMS($this->wmsId);
my line 74 $this->localXML = utf8_decode($this->getCapabilitiesDocByWMS($this->wmsId));
- I'm using mapserver (version 5.2.0 I'm testing) as wms server. The delivered capabilities are by default encoded in ISO-8859-1: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
- I'm using postgres-db as mapbender-db. Encoding is UTF-8.
- My locale settings are:
Solution only for my environment ?
But I really do not know, what is done in MapBender in detail with encoding characters.
I don't know, if this solution is only good for my environment.
But it may be a tipp for someone else, who has similar problems or for the developpers to review the code for this prupose.
Schönhammer Herbert --> not up to date ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mapbender_users