[GH-ISSUE #59] "'Cp932' codec can't decode" occurs on Japanese OS #42

Closed
opened 2026-03-04 12:28:16 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (May 17, 2023).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/59

Add encoding='UTF-8' utility.py to resolve'cp932' codec can't decode

with open(playlist_m3u_queue[play_id]['filename'], 'w')
to
with open(playlist_m3u_queue[play_id]['filename'], 'w', encoding='UTF-8')

and

with open(playlist_m3u_queue[play_id]['filename'], 'a')
to
with open(playlist_m3u_queue[play_id]['filename'], 'a', encoding='UTF-8')

I'm not sure how to do pull requests, so I'm going to write to ISSUES
Sorry.

Originally created by @ghost on GitHub (May 17, 2023). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/59 Add encoding='UTF-8' utility.py to resolve'cp932' codec can't decode with open(playlist_m3u_queue[play_id]['filename'], 'w') to with open(playlist_m3u_queue[play_id]['filename'], 'w', encoding='UTF-8') and with open(playlist_m3u_queue[play_id]['filename'], 'a') to with open(playlist_m3u_queue[play_id]['filename'], 'a', encoding='UTF-8') I'm not sure how to do pull requests, so I'm going to write to ISSUES Sorry.
kerem 2026-03-04 12:28:16 +03:00
Author
Owner

@casualsnek commented on GitHub (May 18, 2023):

Thanks for reporting the issue ! It should fixed now after this github.com/casualsnek/onthespot@77632bb5fd

<!-- gh-comment-id:1553157035 --> @casualsnek commented on GitHub (May 18, 2023): Thanks for reporting the issue ! It should fixed now after this https://github.com/casualsnek/onthespot/commit/77632bb5fd349b92308a1eed9113d7b9f58d3329
Author
Owner

@ghost commented on GitHub (May 19, 2023):

i forgot to reply
It was fixed too.
thank you

<!-- gh-comment-id:1555290239 --> @ghost commented on GitHub (May 19, 2023): i forgot to reply It was fixed too. thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#42
No description provided.