Documentation for Ice 3.5. The latest release is Ice 3.7. Refer to the space directory for other releases.

The Ice namespace provides four convenience functions that make it easy to convert strings to and from UTF?8:

C++
namespace Ice {

std::string nativeToUTF8(const Ice::StringConverterPtr&, const std::string&);

std::string nativeToUTF8(const Ice::CommunicatorPtr&, const std::string&);

std::string UTF8ToNative(const Ice::StringConverterPtr&, const std::string&);

std::string UTF8ToNative(const Ice::CommunicatorPtr&, const std::string&);

}

The overloads allow you to either use the string converter that is configured on a communicator or to explicitly pass a specific string converter that performs the conversion.

See Also
  • No labels