iambus/youku-lixian — Issue #7: UnicodeEncodeError: 'charmap' codec can't encode characters
Author: pengkui
Created: 2012-02-19 05:59:54+00:00
State: open

R:\DOWNLOADS\iambus>python bilibili.py http://www.bilibili.tv/video/av204442/index_3.html
Traceback (most recent call last):
File "bilibili.py", line 73, in
main()
File "bilibili.py", line 70, in main
script_main('bilibili', bilibili_download)
File "R:\DOWNLOADS\iambus\common.py", line 232, in script_main
download(url)
File "bilibili.py", line 57, in bilibili_download
iask_download_by_id(id, title)
File "R:\DOWNLOADS\iambus\iask.py", line 16, in iask_download_by_id
download_urls(urls, title, 'flv', total_size=None)
File "R:\DOWNLOADS\iambus\common.py", line 188, in download_urls
print 'Downloading %s.%s ...' % (title, ext)
File "C:\Python27\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 12-21: character maps to

OS: win7 64bit