diff options
author | Viktor Szakats <commit@vsz.me> | 2021-06-15 12:10:48 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2021-06-15 12:10:48 +0000 |
commit | 2026124691a82d3a628233b109cca60e99cdf839 (patch) | |
tree | 7380720f89d9a017ee7df1d505244dee570bc83a /docs/libcurl/opts | |
parent | b67d3ba73e98cba63dc6246ee0da22ea803ec3e8 (diff) | |
download | curl-2026124691a82d3a628233b109cca60e99cdf839.tar.gz |
idn: fix libidn2 with windows unicode builds
Unicode Windows builds use UTF-8 strings internally in libcurl,
so make sure to call the UTF-8 flavour of the libidn2 API. Also
document that Windows builds with libidn2 and UNICODE do expect
CURLOPT_URL as an UTF-8 string.
Reported-by: dEajL3kA on github
Assisted-by: Jay Satiro
Reviewed-by: Marcel Raad
Closes #7246
Fixes #7228
Diffstat (limited to 'docs/libcurl/opts')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_URL.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_URL.3 b/docs/libcurl/opts/CURLOPT_URL.3 index 17e5c8b89..e33d866bf 100644 --- a/docs/libcurl/opts/CURLOPT_URL.3 +++ b/docs/libcurl/opts/CURLOPT_URL.3 @@ -72,7 +72,7 @@ expected to be a sequence of characters using an ASCII compatible encoding. If libcurl is built with IDN support, the server name part of the URL can use an "international name" by using the current encoding (according to locale) or -UTF-8 (when winidn is used). +UTF-8 (when winidn is used; or a Windows Unicode build using libidn2). If libcurl is built without IDN support, the server name is used exactly as specified when passed to the name resolver functions. |