I believe it's the apostroph ' vs. ’ (ALTGR+SHIFT+n)
Part from the original String from elemental file. This contains the
ALTGR+SHIFT+n - apostroph:
>>> "For centuries, you’ve lived peacefully side by side".decode('ascii')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 18:
ordinal not in range(128)
Changing the apostroph to the one on the #-key:
>>> "For centuries, you've lived peacefully side by side".decode('ascii')
u"For centuries, you've lived peacefully side by side"
Original String decoded to utf8:
>>> "For centuries, you’ve lived peacefully side by side".decode('utf8')
u'For centuries, you\u2019ve lived peacefully side by side'
Where does this ALTGR+SHIFT+n - apostroph comes from?
--
https://code.launchpad.net/~widelands-dev/widelands/revised_maps/+merge/289704
Your team Widelands Developers is subscribed to branch
lp:~widelands-dev/widelands/revised_maps.
_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~widelands-dev
More help : https://help.launchpad.net/ListHelp