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.
Invalid URL: UnicodeEncodeError #1435
Comments
|
Thanks for the report. This should only happen in |
|
I'm indeed on Fedora 19 with an "en_US.utf8" locale. |
|
Strange, it works fine on my fedora box (with en_US.utf8 as well). Can you post the output of |
|
XDG_VTNR=1 |
|
@phihag, this only happens when redirecting STDERR to a file. I have a proof of concept patch (only tested on Python 2) here: scottt/youtube-dl@ba6e565 Of course, what I really wanted was to download that video on foreign exchange trading from bloomberg.com :) |
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.bloomberg.com/video/shah-s-presentation-on-foreign-exchange-strategies-qurhIVlJSB6hzkVi229d8g.html']
[debug] youtube-dl version 2013.09.16
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/scottt/bin/youtube-dl/main.py", line 18, in
File "/home/scottt/bin/youtube-dl/youtube_dl/init.py", line 670, in main
File "/home/scottt/bin/youtube-dl/youtube_dl/init.py", line 629, in _real_main
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 87: ordinal not in range(128)