Page 1 of 1

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

Posted: Thu Sep 23, 2010 11:58 pm
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!

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

Posted: Fri Sep 24, 2010 1:04 am
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

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

Posted: Fri Sep 24, 2010 8:57 am
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()).

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

Posted: Sat Sep 25, 2010 2:44 pm
by Guest
Thanks, FDM 3.5 RC seems to have solved this problem.