Hi,

We have an issue with a user of QGIS being unable to view GetFeatureInfo
text/html responses correctly.
I've checked that GeoServer correctly issues headers with
Content-Type: text/html;charset=UTF-8

However, the client reading the response does not seem to read it.
We can fix it by adding <meta charset="UTF-8"> to a header.tpl file in
/templates.
Then QGIS is a happy camper displaying the response correctly.

Since the content type is set correctly I believe GeoServer should be able
to set the meta-tag too.
This has been brought up before,
http://sourceforge.net/p/geoserver/mailman/message/29359247/
I tried to inject the charset into the header.tpl processing and added
<meta charset="${name}"> to header.tpl. But I get an error:
java.io.IOException: Error occured processing header template. Error
occured processing header template. Error on line 11, column 20 in
header.ftl Expecting a string, date or number here, Expression name is
instead a freemarker.ext.beans.SimpleMethodModel

I've never used Freemarker templates before..
Before I put down the time to fix it, would it be an accepted change anyway?

Thanks,
Olle Markljung
------------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to