Skip to content

Commit b3b6cf8

Browse files
committed
GSM incorrect escape sequence is mapped to NBSP (a non ASCII char)
1 parent f7c63ba commit b3b6cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

messaging/sms/gsm0338.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def decode(input_, errors='strict'):
242242
if index < len(input_):
243243
c = input_[index]
244244
index += 1
245-
result.append(escape_decode_dict.get(c, '\xa0'))
245+
result.append(escape_decode_dict.get(c, u'\xa0'))
246246
else:
247-
result.append('\xa0')
247+
result.append(u'\xa0')
248248
else:
249249
try:
250250
result.append(regular_decode_dict[c])

0 commit comments

Comments
 (0)