I'm reading a file (.txt) and we have been told that the encoding is latin, and some friends are doing basicly the same as me but I'm not getting the same result.
This is the code:
file_path = '/sesion1/p1/ejerciciop1.txt'
with open(file_path, "r", encoding="latin-1") as f:
lines = f.read().splitlines()
datos = pd.DataFrame({"texto_original":lines})
print(datos)
I'm doing this in colab, and I'm suposed to get somethin like this: "Ellos est�n felices porque", but having this instead: "Ellos est�n felices porque". That extrange caracter is the problem. The encoding should be right as well, since we have been told is latin.