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

Problems escaping characters #61

Open
yopaseopor opened this issue Feb 10, 2017 · 1 comment
Open

Problems escaping characters #61

yopaseopor opened this issue Feb 10, 2017 · 1 comment

Comments

@yopaseopor
Copy link

Hi!
when I try to put some model letters I have to do some code like this:

<wayNodeModel matcher="-highway=motorway" filter='name="l'Albagés" "traffic_sign:forward"=* side=right' model="/models_ES/traffic_signs/name2Sign.obj" modelParameter="material.mat_sign.texture0=textures/content/black_l'Albagés.png" translate="vector(-0.01,2.1,1)" scale="height(1.5)" direction="270" offset="5" /> <wayNodeModel matcher="-highway=motorway" filter='name="l'Albagés" "traffic_sign:backward"=* side=left' model="/models_ES/traffic_signs/name2Sign.obj" modelParameter="material.mat_sign.texture0=textures/content/black_l'Albagés.png" translate="vector(0.01,2.1,-1)" scale="height(1.5)" direction="90" offset="-5" /> <wayNodeModel matcher="-highway=motorway" filter='name="l'Albagés" "traffic_sign:forward"=* side=left' model="/models_ES/traffic_signs/name2Sign.obj" modelParameter="material.mat_sign.texture0=textures/content/black_l'Albagés.png" translate="vector(-0.01,2.1,1)" scale="height(1.5)" direction="270" offset="-5" /> <wayNodeModel matcher="-highway=motorway" filter='name="l'Albagés" "traffic_sign:backward"=* side=right' model="/models_ES/traffic_signs/name2Sign.obj" modelParameter="material.mat_sign.texture0=textures/content/black_l'Albagés.png" translate="vector(0.01,2.1,-1)" scale="height(1.5)" direction="90" offset="-5" />

The problem is that in my language, that town is called as it is. I need the character " ' " inside the name so I have to escape it...but I don't know how to do it.
I have tried ' but it does not work.
Thanks

@kendzi
Copy link
Owner

kendzi commented Feb 18, 2017

You need to use standard xml escape sequence. You can escape " by using sequence " e.g. the filter may be encoded as:

 filter="name=&quot;l'Albagés&quot; &quot;traffic_sign:forward&quot;=* side=right" 

Unfortunately it doesn't look much readable. So I recommend you to use any xml editor which will encode values automatically.

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

2 participants