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)
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:
RE: UnicodeEncodeError Help-robo1973-09-04-2022 ok thank you for your help. It helped The problem was to write the Polish characters ł, ą, ę |