Good day to everyone!
Firstly, the name of topic isnt really what's happening. But I couldnt invent anything better! I have a very simple case and I can't figure out why does it acts like it does:
name = 'Balikóné'
seq = []
seq.append(name)
print name
print seq[0]
print seq
Thats the result:
Balikóné
Balikóné
['Balik\xc3\xb3n\xc3\xa9']
I'm using Python 2.7.5. As first line of my code I have
# -*- coding: utf-8 -*-
to let python understand that I do have some 'non valid' ascii chars in my string. Otherwise I get:
Non-ASCII character '\xc3' in file 'my_path', but no encoding declared
Why does it look different when i'm printing the list and an item from the list?