curl-library
Re: Support for multi-byte character file names using libcurl
Date: Mon, 28 Jan 2008 10:26:26 +0000
NAGASEKHAR BHUVANAGIRI wrote:
> Hi,
>
> From http://curl.haxx.se/mail/lib-2005-03/0027.html, I see that as on 23 Feb
> 2005 there was no support of multi-byte character file names in libcurl.
> Is the support for multi-byte character file names introduced in later
> releases? If not, is there a plan to have this feature in future releases?
> We need this feature to transfer files for Japanese/Chinese language
> customers. Currently, we are encoding the file name to a hexadecimal format
> before uploading and decoding back to multi-byte while downloading.
>
> Please give me some info on how this can be achieved using libcurl.
Unless I'm misunderstanding the problem, I think all you have to do is
to open a FILE*, using your code that can handle multi-byte file names,
and pass that FILE* to CURL_READFUNCTION. The curl engine then needs
to know nothing about the local file system whatsoever.
-- Regards Steve Collyer Netspinner LtdReceived on 2008-01-28