RoboDK Forum
UnicodeEncodeError Help——革命制度党ntable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: UnicodeEncodeError Help (/Thread-UnicodeEncodeError-Help)



UnicodeEncodeError Help-robo1973-09-01-2022

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')



RE: UnicodeEncodeError Help-Albert-09-01-2022

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

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.


RE: UnicodeEncodeError Help-robo1973-09-04-2022

ok thank you for your help. It helped
The problem was to write the Polish characters ł, ą, ę