Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Znav
nextThe iconv String Converter
prevBuilt-in String Converters

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

Wiki Markup
{zcode:cpp}
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&);

}
{zcode}

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.

Ztop
See Also
Zret
Znav
nextThe iconv String Converter
prevBuilt-in String Converters