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.