Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer-source with non-english characters #175

Closed
Andarki opened this issue Mar 12, 2015 · 2 comments
Closed

Layer-source with non-english characters #175

Andarki opened this issue Mar 12, 2015 · 2 comments

Comments

@Andarki
Copy link

Andarki commented Mar 12, 2015

This is tested in Mapproxy 1.6.0 on Windows.

Layer definition: (spaces omitted due to Markdown)

layers:
name: Other-objects
title: Other objects
sources: ['wms_trans:Øvrige_objekter']

When Mapproxy is started, it shuts down immediately with the following information in the log:

2015-03-11 09:42:30,322 - INFO - mapproxy.config - reading: c:\mapproxy\mapproxy.yaml
2015-03-11 09:42:30,338 - WARNING - mapproxy.config - u'wms_trans:\xd8vrige_objekter' in layers[3].sources[0] not of type str
2015-03-11 09:42:30,338 - CRITICAL - mapproxy.config - invalid configuration

This is caused by the character 'Ø' which in the log appears as \xd8.
I have attempted to save mapproxy.yaml with ansi/utf8/utf8-signatures encodings, which makes no difference.
I have also tried escaping the Ø character with both \xF8 and \u00D8 which also makes no difference.

@olt
Copy link
Member

olt commented Mar 17, 2015

Further discussion on the ML: http://lists.osgeo.org/pipermail/mapproxy/2015-March/002046.html

@olt
Copy link
Member

olt commented Apr 8, 2015

Latest master now encodes the query string as UTF-8, so your example should not fail anymore. It doesn't mean that it now works though.
The WMS spec doesn't specify an encoding. More recent URI/URL RFCs define UTF-8 as the default encoding, but I bet that some servers are expecting something else.

@olt olt closed this as completed May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants