Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Commented Feature: Windows - support for utf-8, single byte strings [239]

$
0
0
On Windows string_t is a 2 byte character, assumed UTF-16 string in the C++ Rest SDK. For some data critical areas we could make API overloads that work with std::string or return std::string.

This has come up numerous times from customers, internal and external.

Steve
Comments: In the development branch I added extract_utf8string and extract_utf16string overloads to http_request and http_response. It is now possible to deal with request/response bodies in UTF-8 and UTF-16 regardless of the platform. This covers all locations of unbounded user data in the HTTP portions of the library. Other areas would probably benefit from UTF-8 overloads on Windows.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>