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

In symbol definition characters (€-¢) are not shown and are not changable #21

Closed
MaklariAgoston opened this issue Sep 16, 2016 · 2 comments

Comments

@MaklariAgoston
Copy link

MaklariAgoston commented Sep 16, 2016

Creating symbol definitions by code and saving by mapObj's save function you will find that loading in Map Manager the definitions look like this one:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER ""
FONT "TC2A"
END

So the character is missing but opening the file with Notepad++ you can see an "HTJ" with black background color:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "�"
FONT "TC2A"
END

If you edit the map file and change the character to for example to "6" and see the map and nothing changes you will see the same sign as it was when you loaded in the map file. If you save it still there is not different but if you look the map file in Notepad++ you will see that:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "�6"
FONT "TC2A"
END

Anyway if the SYMBOLSET path pointing to a folder where is not the looked-for file than you will see:

SYMBOL
NAME "120"
TYPE TRUETYPE
CHARACTER "‰"
FONT "TC2A"
END

Which differs from the "".

@MaklariAgoston
Copy link
Author

MaklariAgoston commented Sep 16, 2016

In the given example the character code was � that is &# 137;

@MaklariAgoston
Copy link
Author

This issue can be solved if you set the value of the character attribute of the symbolObj with the & escape character. For example: use  instead of starting with simply &#

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

1 participant