jinyedge's note
{http://www.jinyedge.pe.kr}


Hi, this is jinyedge. I'm a software developer. I hope you can find some useful information in my homepage.


jinyedge at gmail.com
Since 2001.12.05

 

 
Subj Cont
 
Subj: C, URL decoding with libcurl.
Mtime: 2009-12-04 22:49:47

#include <stdio.h>
#include <string.h>
#include <curl/curl.h>

int main(int argc, char *argv[]){
    CURL* curl;
    char* url = "http://www.google.com/search?q=%ED%95%9C%EA%B8%80&sourceid=ie7&rls=com.microsoft:en-US&ie=utf8&oe=utf8&rlz=";

    char* res = curl_easy_unescape(NULL, url, 0, NULL);
    puts(res);

    curl_free(res);

    return 0;
}