Luc Saffre
2004-11-12 14:11:52 UTC
Why does SciTE's "File/Encoding..." menu show only a small subset of the
encodings known by Python?
My old DOS files are encoded using "codepage 850", known to Python as
"cp850". In Python I can read such a file using code like::
for line in file("test.txt").readlines():
text = text.decode("cp850")
I would like to use SciTE when editing these files, but if they contain
non-ascii characters, SciTE won't display them correctly.
Any hints or ideas?
Luc
encodings known by Python?
My old DOS files are encoded using "codepage 850", known to Python as
"cp850". In Python I can read such a file using code like::
for line in file("test.txt").readlines():
text = text.decode("cp850")
I would like to use SciTE when editing these files, but if they contain
non-ascii characters, SciTE won't display them correctly.
Any hints or ideas?
Luc