Try my new website: www.urcho.com - the new SIMPLE social network
blitz code snippets Sign up | 284 members | 114 snippets
Search for:

Username:
Password:


URLEncode by Raph

[back]
Author: Archive | Viewed: 555 times | Language: BlitzMax | Category: Multiplayer Code
Author Comments:
This function replaces all the special characters in a string with the hex codes in %nn format for use in URLs, POSTs, GETs, etc. For example, "This is URL encoded!" becomes "This%20is%20URL%20encoded%21" I threw it together quickly, so its not Strict and it requires brl.retro. Also, for some reason, it was sticking an extra space on the end, so theres a hack to strip that off. ;)
Login or create an account to comment on this snippet