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.
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.