encode(), nodeValue.encode("utf-8") nodeValue - open()
with open("uiStrings-fi.py", "w", "utf-8") as f:
open(), Unicode, codecs,
from codecs import open
.
, nodeValue.encode("utf-8"), Unicode ( Python, Unicode) ( 0-255). , , names[i] Unicode, values[i] . Python Unicode, , , ASCII, , ASCII 127. , values[i], UTF-8 . Python , , . , , , , , Unicode open ( ).
, , , , names[i] names[i].encode("utf-8"). , names[i] , Python values[i] Unicode. , , Unicode , ... , , unicode Python 3.