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

UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' #1822

Closed
canavan opened this issue Nov 24, 2013 · 3 comments
Closed

UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' #1822

canavan opened this issue Nov 24, 2013 · 3 comments
Labels
bug

Comments

@canavan
Copy link

@canavan canavan commented Nov 24, 2013

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)

@jaimeMF jaimeMF closed this in 267ed0c Nov 24, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 24, 2013

Fixed, thanks for the report!

@Achilles718611
Copy link

@Achilles718611 Achilles718611 commented May 29, 2020

I faced with the same problem.
I installed Python3.6 and youtudb-dl version is 2020.05.08.

UnicodeEncodeError: 'ascii' codec can't encode character '\xfa' in position 10: ordinal not in range(128) "

@canavan
Copy link
Author

@canavan canavan commented May 29, 2020

You will have to post the full output of youtube-dl downloading a video that causes the problem with --verbose added to the command line. Even if it's also a collegehumor video, you'll probably have to open a new issue, but if the debug output is substantially similar, refer to this issue in the new one.

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
3 participants
You can’t perform that action at this time.