Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

UnicodeEncodeError Help

#1
I can save my project on one laptop and not on another Porsże for help

Code:
fid.write(DEFAULT_HEADER_SCRIPT)
fid.write(' \n')


Attached Files Thumbnail(s)

#2
你把这篇文章处理器从哪里来的呢?

Try something like this instead:
Code:
with open(file_to_save, "w", encoding="shift_jis", errors="replace") as fid:
for line in self.PROG:
fid.write(line)
fid.write('\n')
If you can share the project and post processor to reproduce we can help you better.
#3
ok thank you for your help. It helped
The problem was to write the Polish characters ł, ą, ę




Users browsing this thread:
1 Guest(s)