tags:

views:

863

answers:

4

Does anyone know of any good C++ code that does this

+2  A: 

CGICC includes methods to do url encode and decode. form_urlencode and form_urldecode

idontwanttortfm
anything free is good.
J.J.
you just sparked a decent conversation in our office with that library.
J.J.
+1  A: 

Url encoding/decoding algorithm is not that difficult.

I'd start from the specification:

Url encoding on Wikipedia

If you want pre-cooked code, just search the Internets:

http://www.google.it/search?hl=it&q=Encode+Decode+URLs+in+C%2B%2B&meta=

(yep, that address is url-encoded)

friol
+3  A: 

Answering my own question...

libcurl has this: http://curl.haxx.se/libcurl/c/curl_escape.html

Bill Ataras
+2  A: 

And source code...

http://www.codeguru.com/cpp/cpp/string/conversions/article.php/c12759

Bill Ataras