i am trying to format a bunch of strings in python 2.7.6. Everything works properly until an unicode sign shows up. This short example shows my problem:
a = 'ö'
b = 'd'
c = 'e'
print('{:2}{:2}{:2}').format(a, b, c)
The result is:
öd e
But it should be:
ö d e
Tried a lot of stuff with encoding, decoding, unicodedata.normalize, but nothing seems to work. Anyone got an idea what i am doing wrong? Thanks for help and please excuse for my bad english. Greetz,
BigZ
len(a)is 2, even though it looks like it's only one character long.