|
cygwin wget 乱码
在中文简体WINDOWS XP下用CYGWIN WGET下载MP3时因为乱码导致找不到文件,如下:
$ wget --referer="http://ishare.sina.com.cn/cgi-bin/fileid.cgi?fileid=1204557" --user-agent="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" --post-data="" "http://ishare.sina.com.cn/download.php?fileid=1204557"
--21:57:16-- http://ishare.sina.com.cn/download.php?fileid=1204557
=> [email=`download.php@fileid=1204557]`download.php@fileid=1204557'[/email]
Resolving ishare.sina.com.cn... 219.142.78.240
Connecting to ishare.sina.com.cn|219.142.78.240|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://dl.zhishi.sina.com.cn/cgi-bin/netdisk/i_down.cgi/dccba562721a38
7e9f069a4e9b63f6d3/1204557/0/1174830818/20070115_446840_0.mp3/06.%89%F4%B5%C4%BA
%D3%C1%F7.mp3?flag=1 [following]
--21:57:16-- http://dl.zhishi.sina.com.cn/cgi-bin/netdisk/i_down.cgi/dccba56272
1a387e9f069a4e9b63f6d3/1204557/0/1174830818/20070115_446840_0.mp3/06.%89%F4%B5%C
4%BA%D3%C1%F7.mp3?flag=1
=> `06.%89舻暮恿[email=?mp3@flag=1]?mp3@flag=1'[/email]
Resolving dl.zhishi.sina.com.cn... 219.142.78.106
Connecting to dl.zhishi.sina.com.cn|219.142.78.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,605,341 (10M) [application/x-msdownload]
06.%89舻暮恿[email=?mp3@flag=1]?mp3@flag=1[/email]: No such file or directory
Cannot write to `06.%89舻暮恿[email=?mp3@flag=1]?mp3@flag=1'[/email] (No such file or directory).
其实文件是存在的,用IE下载得到文件名06.夢的河流.mp3
发现如果文件名有繁体就有这个问题,如何解决? |
|