Converting a PureWeb string to a standard string in a C++ service

Last Updated: Release 4.3


I'm working with a C++ service and I'm wondering how to convert CSI::String to std::string?


To convert a PureWeb string to a standard UTF 8 string, use the ToStdUtf8 method in the String class.

This method takes the string expressed as a CSI::String and converts it to a std::string for you.

Here's what the conversion would look like for a string variable labeled "someString":

CSI::String someString;
std::string = someString.ToStdUtf8();


April 11, 2017