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: 'charmap' codec can't encode characters #299
Comments
|
Perfectly working for me with 9c22892 and Linux. |
|
close this too old, the video doesn't exist anymore, and probably fixed back then.... |
youtube-dl.py http://www.youtube.com/watch?v=FrWx4GQ485M -o %(autonumber)s-%(stitle)s-%(id)s-%(uploader)s.%(ext)s -c -i -f 18 --console-title -w --write-info-json
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] FrWx4GQ485M: Downloading video webpage
[youtube] FrWx4GQ485M: Downloading video info webpage
[youtube] FrWx4GQ485M: Extracting video information
[info] Video description metadata as JSON to: 00001-___-__9-FrWx4GQ485M-partzifl
och.mp4.info.json
Traceback (most recent call last):
File "M:\bin\youtube-dl\youtube-dl.py", line 4625, in
main()
File "M:\bin\youtube-dl\youtube-dl.py", line 4616, in main
_real_main()
File "M:\bin\youtube-dl\youtube-dl.py", line 4600, in _real_main
retcode = fd.download(all_urls)
File "M:\bin\youtube-dl\youtube-dl.py", line 858, in download
ie.extract(url)
File "M:\bin\youtube-dl\youtube-dl.py", line 1116, in extract
return self._real_extract(url)
File "M:\bin\youtube-dl\youtube-dl.py", line 1445, in _real_extract
'player_url': player_url,
File "M:\bin\youtube-dl\youtube-dl.py", line 817, in process_info
self.trouble(u'ERROR: Cannot write metadata to JSON file ' + infofn)
File "M:\bin\youtube-dl\youtube-dl.py", line 613, in trouble
self.to_stderr(message)
File "M:\bin\youtube-dl\youtube-dl.py", line 588, in to_stderr
print >>sys.stderr, message.encode(preferredencoding())
File "c:\Python27\lib\encodings\cp1252.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_table)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 48-52: c
haracter maps to