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

It won't sync playlist or liked songs due to UnicodeEncodeError (I think) #77

Closed
livingdeadtrue opened this issue Aug 30, 2024 · 2 comments

Comments

@livingdeadtrue
Copy link

UnicodeEncodeError: 'charmap' codec can't encode characters in position 35-42: character maps to

@T0pii
Copy link

T0pii commented Sep 6, 2024

Hi, I just had that issue too. It seems using the default system encoding can cause some issues when special characters are encoded (probably japanese song titles?).
You can force utf-8 encoding by modifying line 278 in file src/spotify_to_tidal/sync.py :
with open(file_name, "a", encoding="utf-8") as file:

This may not be the root cause / the best solution, but this quick fix seems to have worked for me. Let me know if that helped you!

@timrae
Copy link
Collaborator

timrae commented Sep 9, 2024

Should be fixed now, thanks @T0pii

@timrae timrae closed this as completed Sep 9, 2024
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

3 participants