FlashGot give a wrong url(with non-ASCII characters) to FDM

Ask for help about FlashGot, no registration needed to post
Post Reply
kidault

FlashGot give a wrong url(with non-ASCII characters) to FDM

Post by kidault »

I am using FDM portable as my download manager, and it works fine with IE. But the portable FDM has some problem to integrate with firefox(portable too), and that is the reason for me to use Flashgot.

But I enconter some problem with the link:
http://www.smhb.gov.cn/upload/UserFile/File/就医指南(3).pdf
It is on this page(in Chinese)
http://www.smhb.gov.cn/website/b/55549.shtml

The real url FlashGot giving to FDM is
http://www.smhb.gov.cn/upload/UserFile/ ... %97(3).pdf
And when the file is saved to disk, its filename changes to "灏卞尰鎸囧崡(3).pdf". The right one should be "就医指南(3).pdf"

FDM can download it from IE directly without problem, and Firefox internal download manager can handle it well too.

I'd like to know how to let FlashGot transfer
"http://www.smhb.gov.cn/upload/UserFile/File/就医指南(3).pdf"
not
"http://www.smhb.gov.cn/upload/UserFile/ ... %97(3).pdf"
to FDM.

Thanks!
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: FlashGot give a wrong url(with non-ASCII characters) to

Post by therube »

(I'll only tell you what I see from my end, W7, english, no alternative languages or code pages ...)

The link on the page displays (on mouseover) as you show.
When I FlashGot the link (Net Transport download manager) the link that is passed to the download manager (I suppose it is) is URL encoded.

Code: Select all

1;Net Transport 2;0;;
http://www.smhb.gov.cn/website/b/55549.shtml
http://www.smhb.gov.cn/upload/UserFile/File/%E5%B0%B1%E5%8C%BB%E6%8C%87%E5%8D%97(3).pdf
þé+Õç+õ©ïÞ¢¢ÒÇèõ©èµÁÀÕ--Õî+µîçÕìùÒÇïþöÁÕ¡Éþëê
JSESSIONID=c1a9640130d5a153c5bf5335431c9c5cb64321a13dcf.e38Mb30NbheRay0Rc3iLchmObxz0; 

http://forums.informaction.com/viewtopic.php?f=6&t=5102&sid=ef6bfa4808b3b4186c75cd30fd5f1206
JSESSIONID=c1a9640130d5a153c5bf5335431c9c5cb64321a13dcf.e38Mb30NbheRay0Rc3iLchmObxz0
Now Net Transport does display the filename as you are wishing, as does Windows Explorer.

Doing a DIR (from a DOS) prompt or viewing the directory/file in my file manager (Altap Salamander which also is not handling <is it> unicode characters) simply display "????(3).pdf".

So it appears (if I'm understanding correctly) what FlashGot is passing to the download manager is OK.

(View Image, to see larger, if need be.)
Image
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100923 Firefox/4.0b7pre SeaMonkey/2.1b1pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: FlashGot give a wrong url(with non-ASCII characters) to

Post by Giorgio Maone »

It seems to be a FDM bug: it's using the deprecated extended ASCII percent-encoding algorithm (the same as unescape()), instead than the unicode-aware (UTF-8) one (the same as decodeURI()).
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
Guest

Re: FlashGot give a wrong url(with non-ASCII characters) to

Post by Guest »

Thanks, FDM 3.5 RC seems to have solved this problem.
Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 (.NET CLR 3.5.30729)
Post Reply