Author Topic: How to encode special characters in providers.xml?  (Read 93 times)

Offline 2012

  • More than Newbie
  • *
  • Posts: 22
    • View Profile
How to encode special characters in providers.xml?
« 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?
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10215
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: How to encode special characters in providers.xml?
« Reply #1 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
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!