Skip to content

Error when using files with format cp1252 #1

Description

@MiguelxAFM

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions