Python 3: UCS-2 (BE)
, UCS-2 BE ( ) Python 3.3, open() ( UnicodeDecodeError readLine()) - , .
Windows 8, 65001, "Lucida Console".
, :
def display_resource():
f = open(r'D:\workspace\resources\JP.res', encoding=<??tried_several??>)
while True:
line = f.readline()
if len(line) == 0:
break
.
+3
elder elder
1
UCS-2 - UTF-16, , , , UCS-2 .
encoding='utf16'
. BOM (
+11
Martijn Pieters