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

UnicodeEncodeError Help

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

       fid.write('  \n')

Attached Files Thumbnail(s)
Where did you take this post processor from?

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

Users browsing this thread:
1 Guest(s)