[Geoserver-devel] Charset in GetFeatureInfo header

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