From b2f1327fac8167e625b261235d07bf52ffe3eade Mon Sep 17 00:00:00 2001 From: Hirundo Date: Mon, 6 Feb 2012 03:33:36 +0100 Subject: [PATCH] Fix #3643: Character code 0xA0 (NBSP) is used for an up arrow in TTD, so don't write it as ascii. Force unicode instead. Patch by andythenorth. --- nml/grfstrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nml/grfstrings.py b/nml/grfstrings.py index 3e8c829a..9d2be368 100644 --- a/nml/grfstrings.py +++ b/nml/grfstrings.py @@ -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'},