views:

13

answers:

1

I'm trying to have libcurl download a local file with this name:

C:\Users\Lucas Meijer\Desktop\我能吞下玻璃而不傷.chinesefile

But can't seem to be able to find the proper url encoded string that will make libcurl find this.

A: 

On Windows you should access such files using wide-strings, where each character is excatly 2 bytes long, and unicode versions of WinAPI functions should be used for accessing files. In utf-8 characters consume variable number of bytes.

I failed to solve that task from php in due time.

If you're using plain libcurl API try look here or google for "libcurl unicode filename".

scaryzet