mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #5] UnicodeEncodeError: 'latin-1' codec can't encode characters in position 12-13 #5
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ccyang2019 on GitHub (Apr 13, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/5
a little issue at request body which is not default
Latin-1encoded.add
body = body.encode(encoding='utf-8')after line 453 of ytmusic.py could solve my problem.@sigma67 commented on GitHub (Apr 13, 2020):
Thanks for the report. It seems this is only the case when a string is passed to the requests parameter
data, so the other functions usingjsonare not affected.