percentage sign encoding

Advertisement

Guest

percentage sign encoding

I have a password : Ab%4d(e6

I also have batch file which has the following line

WinSCP /console /command "option batch on" "option confirm off" "open ftp://username:Ab%254d(e6@example.com"

I encoded % to %25.

But it shows as :

WinSCP /console /command "option batch on" "option confirm off" "open ftp://username:Abd4d(e6@example.com"

so instead of % the %25 becomes d

I would really appreciate for your help

Thanks
QZ

Reply with quote

Advertisement

Guest

Got it

My bad, the way to do it is

WinSCP /console /command "option batch on" "option confirm off" "open ftp://username:Ab%%4d(e6@example.com"

I need to encode % as %%.

Reply with quote

Advertisement

You can post new topics in this forum