HttpRequest: assume that the encoding is UTF-8
Converting the header from Latin1 does not look correct.
Similarly, calling toLocal8Bit() will not provide UTF-8 on Windows,
and httpAttributeEncode() clearly tries to represent the attribute
as UTF-8.
Change-Id: Iebbf20a3809baa69b17a1d4bebf26580e8b955b0
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | c1e1a02aacccfb4e0dac18c606350f89290cf61b |
| parent | d15db2c56ce31c6eb2ad3745a777b268d346ec9d |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Wed, 10 Sep 2025 11:53:15 +0200 |
- M src/main/resources/cpp-qt6-client/HttpRequest.cpp.mustache
- M tests/auto/colorpalette/client/client/QtOAIHttpRequest.cpp
- M tests/auto/colorpalette/qmlclient/client/OAIHttpRequest.cpp
- M tests/auto/mediatype/client/client/QtOAIHttpRequest.cpp
- M tests/auto/openapi2.0/client/client/QtOAIHttpRequest.cpp
- M tests/auto/operation-parameters/client/client/QtOAIHttpRequest.cpp
- M tests/auto/petstore/client/client/QtOAIHttpRequest.cpp
- M tests/auto/petstore/qmlclient/client/OAIHttpRequest.cpp