Hi,
while exploring http://trac.osgeo.org/mapbender/ticket/171
i got a little bit stuck.
The problem seems to in
mod_addWMSfromfilteredList_server.php
the line
$output = $json->encode($resultObj);
which fails if the database is not UTF-8 but ISO-8859-1
see http://de.php.net/manual/en/function.json-encode.php
"This function only works with UTF-8 encoded data." If you use e.g.
german umlauts in ISO you will get "Oberfl" instead of "Oberfläche".
So, converting values to UTF-8 is necessary, but when and where?
Right after retrieving the values from the database or just before
using json_encode? And are other files affected, too?
Any hints?
Ciao
Thomas
--
Thomas Baschetti - Systemanalyse Geographische Informationssysteme
Hakenstraße 8D
49074 Osnabrück
Tel: 0541 25 91 90 | mobil 01577 189 25 91
E-Mail: [email protected]
www.thomas-baschetti.de
Ust-IdNr.: DE264355072
_______________________________________________
Mapbender_dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapbender_dev