[Mapbender-users] MB 2.5: Capabilities with Umlauts: monitorCapabilities always reports "WMS is not up to date."

Schönhammer, Herbert Schoenhammer.Herbert at Regensburg.de
Thu Nov 27 08:51:21 EST 2008


Hi list,

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));


My environment
==============

- 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:
        LANG=de_DE.UTF-8
        LC_CTYPE="POSIX"
        LC_NUMERIC="POSIX"
        LC_TIME="POSIX"
        LC_COLLATE="POSIX"
        LC_MONETARY="POSIX"
        LC_MESSAGES="POSIX"
        LC_PAPER="POSIX"
        LC_NAME="POSIX"
        LC_ADDRESS="POSIX"
        LC_TELEPHONE="POSIX"
        LC_MEASUREMENT="POSIX"
        LC_IDENTIFICATION="POSIX"
        LC_ALL=POSIX


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.

greetings
Schönhammer Herbert   --> not up to date  ;-)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapbender_users/attachments/20081127/d8879e94/attachment.html


More information about the Mapbender_users mailing list