rg3/youtube-dl — Issue #299: UnicodeEncodeError: 'charmap' codec can't encode characters
Author: yoshco
Created: 2012-02-29 15:55:31+00:00
State: open

youtube-dl.py -a "partzifloch_uploads.log" -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