Locus Map - forum

Support => Troubles & Questions => Topic started by: 2012 on August 02, 2017, 12:37:44

Title: How to encode special characters in providers.xml?
Post by: 2012 on August 02, 2017, 12:37:44
I use providers.xml for custom online maps. They work fine.

However, for the <mode> string I want to enter words with special characters (åäöÅÄÖ etc) for display in the maps selection interface.

I use the "<?xml version="1.0" encoding="UTF-8"?>" string in the first line for my xml file.

If I just write the mode strings without any explicit encoding, ("<mode>Björnbärstårta</mode>"), Lotus displays a garbage character where the special characters are supposed to be (like "Bj□rnb□rst□rta").
If I write them with UTF-8 encoding(?) like "<mode>Bj\xC3\xB6rnb\xC3\xA4rst\xC3\xA5rta</mode>", Lotus shows the encoded string as written with slashes and all. I am really unsure if this is how it is supposed to be done, I'm better at maps than strings. :)

How should I do it properly?
Title: Re: How to encode special characters in providers.xml?
Post by: Menion on August 02, 2017, 12:44:28
Hello,
you mean LoCus? :).

Anyway may you share with me here you XML file ( no matter if working or not ). I'll test it.
Thanks