acgonzales / pydeezer

A package to search and download musics on Deezer.
The Unlicense
53 stars 14 forks source link

can't encode character while saving song lyrics #3

Closed isoldmysoull closed 4 years ago

isoldmysoull commented 4 years ago

i got this error while downloading a song: UnicodeEncodeError: 'charmap' codec can't encode character '\u2005' in position 29: character maps to

i fixed by add encoding to save lyrics in save lyrics function: with open(save_path, "w") as f --> with open(save_path, "w", encoding="utf-8") as f

acgonzales commented 4 years ago

Thanks, you can submit a pull request if you like.