Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube-dl doesn't seem to work with cyrillic titles #2672

Closed
snify opened this issue Apr 2, 2014 · 3 comments
Closed

Youtube-dl doesn't seem to work with cyrillic titles #2672

snify opened this issue Apr 2, 2014 · 3 comments

Comments

@snify
Copy link

@snify snify commented Apr 2, 2014

I've tried youtube-dl (latest version from 2014.04.02) on Windows with the following link: http://www.vbox7.com/play:8027f941b
which has title in cyrillic "Най-добрите бойци на Шао Лин - slow mo", but youtube-dl prints only the non-cyrillic characters: "- - slow mo"
Is that a bug? Does youtube-dl have unicode titles support?

youtube-dl --verbose --get-title http://www.vbox7.com/play:8027f941bc
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--get-title', 'http://www.vbox7.com/play:8027f941bc']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2014.04.02
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
-     - slow mo
@phihag
Copy link
Contributor

@phihag phihag commented Apr 3, 2014

Thank you for the report. youtube-dl supports Unicode titles just fine, and I get the correct Най-добрите бойци на Шао Лин - slow mo. Most likely, this is a bug related to the Windows console output - you can see right in the output that your Windows is configured to suboptimal (i.e. non-UTF) encodings. We'll investigate this.

@phihag
Copy link
Contributor

@phihag phihag commented Apr 7, 2014

Neither cp437 nor cp1252 support the character й. Therefore, despite your system being configured to use these code pages, they do not support the character you want to output.

Starting with youtube-dl 2014.04.07.2, you can now pass in the --encoding option to force the encoding you would like.

@phihag phihag closed this in b58ddb3 Apr 7, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Apr 7, 2014

This should be fixed in youtube-dl 2014.04.07.3 and newer - we are now using an obscure C function to output on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.