[Python] Youtube video upload - issues with special characters

Discussão em 'Python' iniciado por Stack, Maio 31, 2025.

  1. Stack

    Stack Membro Participativo

    Not able to resolve issues with special characters in title and description. I'm using official google example code to upload videos to youtube like below example:

    python upload_video.py --file="DU.mp4" --title="Rozporządzenie" --description="Zapraszamy do odsłuchania nowej publikacji dziennika ustaw opublikowanego na stronie sejmu.\n\nTytuł: DU/2025/695 - Rozporzaogon;dzenie Ministra Rolnictwa i Rozwoju Wsi" --keywords="" --category="25" --privacyStatus="private" --noauth_local_webserver


    Acc. to this doc: https://developers.google.com/youtube/v3/guides/uploading_a_video

    Simply im using polish special characters and while upload process youtube is returing it like below: [​IMG]

    Was able to find info in google documentation that by default the title and description are encoded in utf-8, this is visible here: [​IMG]

    Acc to this doc: https://developers.google.com/youtube/v3/docs/videos#resource

    How can I resolve this issue? what am I doing wrong?

    Continue reading...

Compartilhe esta Página