Home > Back-end >  Under the Libevent evhttp_set_cb URL with Chinese, download address is invalid
Under the Libevent evhttp_set_cb URL with Chinese, download address is invalid

Time:11-10

I use libevent creates an HTTP server, there are some local resources, through evhttp_set_cb, specifies the download URL, but when the URL you have any Chinese this download link is invalid, for example: http://10.100.211.237:50000/: hello. Zip, if there is no Chinese, this URL is valid, could you tell me how to solve?

CodePudding user response:

I found the method, using evhttp_decode_uri function to the uri path for decoding
  • Related