Solution to issue cannot be found in the documentation.
[X] I checked the documentation.
Issue
Originally reported by @squromiv in curl/curl#12231:
Unicode --data doesn't work:
curl -v --data спасти http://httpbin.org/post
the server is sent invalid data and replies with fffd (unknown) (������)
\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd
what curl should do is send the unicode --data and then the server will reply with the same characters:
\u0441\u043f\u0430\u0441\u0442\u0438
The reporter is using "C:\ProgramData\Anaconda3\Library\bin\curl.exe" 8.1.1 with "Unicode" in the features list.
I was able to reproduce with the curl.exe from curl-8.1.1-h68f0423_0 (and dependencies libcurl-8.1.1-h68f0423_0, libssh2-1.10.0-h680486a_3, openssl-1.1.1w-hcfcfb64_0, libzlib-1.2.13-hcfcfb64_5).
This is either a bug in curl or in your build process, I don't know which. In bld.bat ENABLE_UNICODE=yes which is the correct way to enable Unicode. I can see there are multiple build methods. It would be helpful to know exactly how the distributed version of curl.exe is built.
Solution to issue cannot be found in the documentation.
Issue
Originally reported by @squromiv in curl/curl#12231:
Unicode --data doesn't work:
the server is sent invalid data and replies with fffd (unknown) (������)
what curl should do is send the unicode --data and then the server will reply with the same characters:
The reporter is using "C:\ProgramData\Anaconda3\Library\bin\curl.exe" 8.1.1 with "Unicode" in the features list.
I was able to reproduce with the curl.exe from curl-8.1.1-h68f0423_0 (and dependencies libcurl-8.1.1-h68f0423_0, libssh2-1.10.0-h680486a_3, openssl-1.1.1w-hcfcfb64_0, libzlib-1.2.13-hcfcfb64_5).
This is either a bug in curl or in your build process, I don't know which. In bld.bat ENABLE_UNICODE=yes which is the correct way to enable Unicode. I can see there are multiple build methods. It would be helpful to know exactly how the distributed version of curl.exe is built.
Installed packages
Environment info