I checked it in a lot ways, and always i have same problem with coding. I have text file, where ; is a separator. I'd like to input all splitted data into python to work on it. There's my code:
f = open("zestaw.txt")
od = f.read()
od = od.splitlines()
f.close()
print od[0]
output =[]
for p in od:
output.append(p.split(';'))
print output[0]
first print gives me a normal output without coding problems and its looks like:
Tytuł;Autor;ISBN;Wydawnictwo;Rok wydania;Kategoria;Podkategoria
But second print
['Tytu\xb3', 'Autor', 'ISBN', 'Wydawnictwo', 'Rok wydania', 'Kategoria', 'Podkategoria']
Everything is good expect changing ł for a \xb3
Anyone have idea how to change it? only python 2.7