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.
Encoding UTF-8 #11650
Encoding UTF-8 #11650
Comments
|
Does this work? |
|
@yan12125 nope. I already tried that. All unicode title were stripped. |
|
Actually seems the output of cmd Windows is correct, tried to change the font of cmd windows to But when the logs were copied into clipboard and paste here, it's correct. youtube-dl -e "https://www.youtube.com/watch?v=E_JXrNAxGzM" -v |
|
Can you use Chinese fonts in CMD? Forget git bash - such UNIX emulators never work perfectly in Windows. |
|
By the way, could you also try Python 3.6? It's multi-language support is better than youtube-dl's built-in version (3.4.4) |
|
How to use my python installed rather than youtube-dl built in? |
I mean the font dialog in CMD properties. For example, on my machine I can use MingLiU(細明體) to display Chinese characters.
Download the UNIX version at https://github.com/rg3/youtube-dl/releases/download/2017.01.08/youtube-dl and run
|
This encoding is used for printing things to terminal. As it's already utf-8, the problem is apparently in CMD. |
|
Sadly there is no font like yours. btw, thank you so much @yan12125 for your great assistance. I'll try to explore more possibility based on your nice enlightment |
|
Some people say that Consolas can display Chinese. If still broken you may want to find how to install additional fonts to CMD. |
|
Yes. Great idea. I've already added more fonts into CMD. And my screenshot above shows it with courier new font added , while it's not available before.
Now will try it with chinese font. |
|
Again, thank you very much @yan12125 after adding chinese font. It works like a charm !! . |
|
Glad to see that works. Windows sucks as usual, and this time you overcome it :) |
|
Windows CMD normally uses codepage 437 or 850, defined by your locale. You can change it to unicode with For reference: http://ss64.com/nt/chcp.html |







I've read many documentations here about utf8, and still i face this issue.
youtube-dl --version2017.01.08Execute youtube-dl.exe for windows in native windows cmd.
it gives strange and wrong output like this
27/12/2016 晚間新聞 楊家駿直播睇手機
inside of the original title :
27/12/2016 晚間新聞 楊家駿直播睇手機
While using Git Bash, it gives different wrong output
27/12/2016 æéæ°è æ¥å®¶é§¿ç´æçææ©
To solve this in git bash, i have to set the locale options first to utf 8 (Options - text- locale), but not for windows cmd.
So how to solve this in most generic windows OS without git bash window? or without set git bash options setting?