Skip to content

Commit

Permalink
Fix #3643: Character code 0xA0 (NBSP) is used for an up arrow in TTD,…
Browse files Browse the repository at this point in the history
… so don't write it as ascii. Force unicode instead. Patch by andythenorth.
  • Loading branch information
Hirundo committed Feb 6, 2012
1 parent c3562e6 commit b2f1327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nml/grfstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def com_parse_string(val, lang_id):
# Special characters / glyphs
'': {'unicode': r'\0D', 'ascii': r'\0D'},
'{': {'unicode': r'{', 'ascii': r'{' },
'NBSP': {'unicode': r'\U00A0', 'ascii': r'\A0'},
'NBSP': {'unicode': r'\U00A0'}, # character A0 is used as up arrow in TTD, so don't use ASCII here.
'COPYRIGHT': {'unicode': r'\U00A9', 'ascii': r'\A9'},
'TRAIN': {'unicode': r'\UE0B4', 'ascii': r'\B4'},
'LORRY': {'unicode': r'\UE0B5', 'ascii': r'\B5'},
Expand Down

0 comments on commit b2f1327

Please sign in to comment.