I have a simple script parse_dict_pl.py:
# -*- coding: utf-8 -*-
f = open('polish.txt','r')
print "Polish letters: ęóąśłżźćń"
for l in f:
print l
File polish.txt contains polish letters: ęóąśłżźćń
I run script from windows command line as follows:
python parse_dict_pl.py
and the result is:
Polish letters: ęóąśłżźćń
ęóąśłżźćń
How can I properly print polish letters hardcoded in the script and loaded from file?
Pawel