The manual pages for curl_easy_escape and curl_easy_unescape should mention which character encoding is used for const char * url if we escape e.g. a Chinese word.
I assume it is UTF-8 which means that e.g. on Windows the user needs an additional call to iconv() to convert it to the native encoding. Currently this is not obvious.