Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_dst decoding error #92

Open
hdacosta400 opened this issue Feb 8, 2022 · 0 comments
Open

read_dst decoding error #92

hdacosta400 opened this issue Feb 8, 2022 · 0 comments

Comments

@hdacosta400
Copy link

Hi, I am getting this error when trying to read a .dst file that I created using the pyembroidery API. What's weird about this is that it is readable on my partner's Window machine but not on my Mac. What ways are there to go about fixing this?

File "stitch_plotter.py", line 25, in <module> pattern = pyembroidery.read_dst('pattern.dst', settings="ISO-8859-1") File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyembroidery/PyEmbroidery.py", line 484, in read_dst return read_embroidery(DstReader, f, settings, pattern) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyembroidery/PyEmbroidery.py", line 473, in read_embroidery reader.read(stream, pattern, settings) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyembroidery/DstReader.py", line 86, in read dst_read_header(f, out) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyembroidery/DstReader.py", line 55, in dst_read_header header_string = header.decode('utf8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 8: invalid continuation byte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant