[MapProxy] Unicode support in layer names?

André Pirard A.Pirard.Papou at gmail.com
Thu Mar 12 05:43:50 PDT 2015


On 2015-03-12 10:50, Anders Sparre Jakobsen wrote :
>>> The Ø have been translated into \xd8. I have attempted to save mapproxy.yaml with ansi, utf8 and utf8-signature encodings, this does not seem to have an effect.
>>> Since this is an external wms source, it is not possible to rename it.
>>> How can I make this work?
>> Although it shouldn't matter, what happens if you save it as ascii and escape the special character manually? See
>> http://yaml.org/spec/1.2/spec.html#id2776092 for escaping information.
> Hi Paul
>
> Thank you for the suggestion.
> I have tried with:
>
> - name: SV-Oevrige_objekter
>     title: SV-Oevrige objekter
>     sources: ['wms_trans:\u00D8vrige_objekter']
>
> and
>
> - name: SV-Oevrige_objekter
>     title: SV-Oevrige objekter
>     sources: ['wms_trans:\xD8vrige_objekter']
>
> In both circumstances, the escape is not interpreted so the request sent to the remote WMS is:
> wms?layers=%5Cu00D8vrige_objekter&styles=
You should try to use %C3%98 in stead of Ø.
A Web server is supposed to make the reverse conversion.
%C3%98 is the encoded multi-byte UTF8 representation of Ø.
To make one, just include the string in a dummy URL in the Firefox
address bar, execute it and copy&paste the newly displayed URL back.

Cheers

André.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20150312/975081a3/attachment.html>


More information about the MapProxy mailing list