Urlencode?
#1

I've founded this function on DracoBlue site, but it has bug and stops next functions :/

Код:
	format(string, 300, "http://ziomal.hostei.com/mail.php?to...;ćę");
	string = urlencode(string);
	print(string);
Nothing shows in console :/ http://dracoblue.net/dev/urlencode-in-pawn/141/
Reply
#2

Refresh.
Reply
#3

pawn Код:
main()
{
    printf("%s",urlencode("[url]http://www.sa-mp.com"[/url]));
    print("Line 2");
}
Outputs:

Код:
http%3A%2F%2Fwww.sa-mp.com
Line 2
So yes, the function seems to be bugged, since it only replaces : with %3A and / with %2F.
Reply
#4

Looks like I need to write my one. Maybe I'll post her in useful functions.
Reply
#5

You can remove this spam post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)