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.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' #1822
Comments
|
Fixed, thanks for the report! |
|
I faced with the same problem. UnicodeEncodeError: 'ascii' codec can't encode character '\xfa' in position 10: ordinal not in range(128) " |
|
You will have to post the full output of youtube-dl downloading a video that causes the problem with |
The following error occurs on both Linux and IRIX, both using python 2.7:
$ ./youtube-dl --verbose http://www.collegehumor.com/video/6939029
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.collegehumor.com/video/6939029']
[debug] youtube-dl version 2013.11.24.1
[debug] Python version 2.7.5+ - Linux-3.11.6-i686-with-Ubuntu-13.10-saucy
[debug] Proxy map: {}
[CollegeHumor] 6939029: Extracting information
[CollegeHumor] 6939029: Downloading info XML
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./youtube-dl/main.py", line 18, in
File "./youtube-dl/youtube_dl/init.py", line 775, in main
File "./youtube-dl/youtube_dl/init.py", line 728, in _real_main
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 791, in download
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 416, in extract_info
File "./youtube-dl/youtube_dl/extractor/common.py", line 129, in extract
File "./youtube-dl/youtube_dl/extractor/collegehumor.py", line 53, in _real_extract
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1640, in feed
self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 1416: ordinal not in range(128)