special characters in map XML?

Topics that are not maps. Discuss general map making concepts, techniques, contests, etc, here.

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.
Post Reply
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

special characters in map XML?

Post by sherkaner »

Question: which special characters can be in territory names?

Why?
I'm using JQuery to find a territory now in BOB, but it disallows some characters, namely these: #;&,.+*~':"!^$[]()=>|/
I'll have to escape some, and I've already escaped :'.&"
But are there any other characters that are/could be used in territory names?
User avatar
Premier2k
Posts: 492
Joined: Tue Oct 02, 2007 5:53 am
Gender: Male
Contact:

Re: special characters in map XML?

Post by Premier2k »

Have a read through this!

http://en.wikipedia.org/wiki/List_of_XM ... references

Hope that helps!

Premier2k
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: special characters in map XML?

Post by yeti_c »

If you have a finite list of disallowed chars - then escape all of them...

Any accented or similar symbols that are to be displayed have to be done with & encoding. (Which can also include a #)

C.
Image
Highest score : 2297
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: special characters in map XML?

Post by sherkaner »

yeti_c wrote:If you have a finite list of disallowed chars - then escape all of them...

Any accented or similar symbols that are to be displayed have to be done with & encoding. (Which can also include a #)

C.
Kinda worried about performance atm for that solution, but that is an option.
I think I should change it in such a way that I never need to use the territory names as id's, or remove those characters beforehand (I do it afterward now). But still thinking about how to do that exactly.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Re: special characters in map XML?

Post by yeti_c »

sherkaner wrote:
yeti_c wrote:If you have a finite list of disallowed chars - then escape all of them...

Any accented or similar symbols that are to be displayed have to be done with & encoding. (Which can also include a #)

C.
Kinda worried about performance atm for that solution, but that is an option.
I think I should change it in such a way that I never need to use the territory names as id's, or remove those characters beforehand (I do it afterward now). But still thinking about how to do that exactly.
Creating your own ID's would be very simple - and probably the way forward... that way these special chars would only be used for display...

I think the only thing you'd need to look out for is the cards display - as that is the only thing you are not writing out - you would need to do a lookup from that into your arrays.

C.
Image
Highest score : 2297
Post Reply

Return to “Foundry Discussions”