Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

There is a global setting for charsets here:

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)

share|improve this answer
Already tried, it doesn't affect web pages served by geoserver. – Michal Zimmermann Aug 24 '12 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. – Andrea Aime Aug 24 '12 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. – Michal Zimmermann Aug 24 '12 at 8:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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