Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Using youtube-dl in Windows cmd whilst storing a variable seems to strip non ASCII characters #25585
Comments
|
Nothing to do with youtube-dl. |
Checklist
Question
Running youtube-dl directly in CMD works as expected:
youtube-dl -e "https://www.youtube.com/watch?v=E_JXrNAxGzM"It correctly gives the title of the Youtube video: 27/12/2016 晚間新聞 楊家駿直播睇手機
However if I try to store the title as a variable and echo the result, the non ASCII characters are stripped:
FOR /F "delims=" %i IN ('youtube-dl -e "https://www.youtube.com/watch?v=E_JXrNAxGzM"') DO (ECHO %i)This only gives this result: 27/12/2016
Result of the same code as above but with
-v(Same example here in image form)
Is it something to do with youtube-dl or Windows cmd storing variables?