Hi ActuallySparky,
In the C++ REST SDK we use utility::string_t for most string operations. It is a typedef to a specific string type depending on the platform. For Windows UTF-16 is the preferred string, and the type is a std::wstring. On Linux UTF-8 is used, as a std::string. Some of the APIs support parameters as both UTF-16 and UTF-8, but the uri_builder doesn't.
The library contains a series of string conversion functions that you can use. Take a look at the reference documentation, the one you are looking for here is utility::conversions::to_string_t(...).
Steve
In the C++ REST SDK we use utility::string_t for most string operations. It is a typedef to a specific string type depending on the platform. For Windows UTF-16 is the preferred string, and the type is a std::wstring. On Linux UTF-8 is used, as a std::string. Some of the APIs support parameters as both UTF-16 and UTF-8, but the uri_builder doesn't.
The library contains a series of string conversion functions that you can use. Take a look at the reference documentation, the one you are looking for here is utility::conversions::to_string_t(...).
Steve