Bundle writing file error
Summary
When creating a bundle with a computer in a different coding system an error appeared.
What version of carputils and/or openCARP are you using?
carputils 3b281f4e
What operating system and processor architecture are you using?
Ubuntu LTS 20.04
Steps to reproduce
What is the current bug behavior?
The files were not created due to unexpected characters.
What is the expected correct behavior?
The bundle should parse and create files without errors.
Relevant logs and/or screenshots
Traceback (most recent call last): File "SAN_simulation.py", line 518, in run() File "/home/jorge/carputils/carputils/tools.py", line 548, in wrapped bundle.finalize_bundle(job.ID) File "/home/jorge/carputils/carputils/bundle/bundle.py", line 269, in finalize_bundle bundleio.write_pscript(self.protocol_script, self.exp_filename, self.bundle_dir) File "/home/jorge/carputils/carputils/bundle/bundleio.py", line 59, in write_pscript f_dest.write(pscript) UnicodeEncodeError: 'ascii' codec can't encode character '\xb0' in position 2722: ordinal not in range(128)
Possible fixes
Please see branch bundle_utf8