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 downloading from collegehumor.com #1285

Closed
rmunn opened this issue Aug 21, 2013 · 0 comments
Closed

UnicodeEncodeError downloading from collegehumor.com #1285

rmunn opened this issue Aug 21, 2013 · 0 comments

Comments

@rmunn
Copy link

@rmunn rmunn commented Aug 21, 2013

Trying to download http://www.collegehumor.com/video/3505939/font-conference, I got the following error:

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 <module>
  File "../youtube-dl/youtube_dl/__init__.py", line 639, in main
  File "../youtube-dl/youtube_dl/__init__.py", line 623, in _real_main
  File "../youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
  File "../youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
  File "../youtube-dl/youtube_dl/extractor/common.py", line 96, in extract
  File "../youtube-dl/youtube_dl/extractor/collegehumor.py", line 61, 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'\ufffd' in position 26: ordinal not in range(128)

I'm not sure why a U+FFFD replacement character is showing up; when I downloaded the XML data file manually for that video, there were no U+FFFD characters in it. But somewhere along the way, one is showing up when I try to use youtube-dl to download the file.

@phihag phihag closed this in 87f7894 Aug 21, 2013
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
1 participant
You can’t perform that action at this time.