cURL / Mailing Lists / curl-library / Single Mail

curl-library

encoding of file:// URL on Windows

From: <clinton_at_elemtech.com>
Date: Thu, 7 Aug 2014 08:10:41 -0600 (MDT)

Hi,

I'm having problems using non-ascii characters with libcurl. I am getting errors that files cannot be found.

From lib/file.c, it appears to be using the ANSI API open() for file URLs, which does not work with all possible file names.
This was reported a few years back: http://curl.haxx.se/mail/lib-2010-05/0121.html
But it doesn't appear to be fixed.

What encoding does libcurl expect from the caller when setting the CURLOPT_URL option? UTF-8 or the Windows ANSI code page?
The answer to that would help make a correct patch.

Thanks,
Clinton

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-07