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

Error when using files with format cp1252 #1

Open
MiguelxAFM opened this issue Apr 18, 2023 · 0 comments
Open

Error when using files with format cp1252 #1

MiguelxAFM opened this issue Apr 18, 2023 · 0 comments

Comments

@MiguelxAFM
Copy link

Got this error when converting my music sheet

File "C:\Python38\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 1992-1994: character maps to

Encode the solution for solve this
with open(final_path, 'w', encoding='utf-8') as result_file:

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