I'm running geoserver with some web pages in data_dir/www. These pages are encoded in cp1250, but when I load them using geoserver (localhost:8080/geoserver/www) they are encoded or they behave as they were encoded in utf-8. As a result i get tons of question marks instead of real letters.

I am not able to convert pages into utf-8, so is there a way to tell geoserver not to send utf-8 http header and send cp1250 header instead?

1 Answer 1


There is a global setting for charsets here: http://docs.geoserver.org/latest/en/user/webadmin/server/globalsettings.html

That said, I'm not sure if it will help for pages in the www directory or if it will have side effects on OGC requests and GUI pages (as far as I know at that point you need everything to be in that charset)

  • Already tried, it doesn't affect web pages served by geoserver. Commented Aug 24, 2012 at 8:49
  • Then I'm afraid that without coding there is no way to change it. The class to be modified is the AbstractURLPublisher in the ows module. If you have coding abilities please fork GeoServer on github, make it use the globally configured charset, and issue a pull request. Commented Aug 24, 2012 at 8:52
  • I don't know much about java, it's gonna be easier to convert these pages to utf-8 then. Thank you. Commented Aug 24, 2012 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.