std::string pugi::as_utf8 ( const wchar_t *  str  ) 

Convert utf16 to utf8

Parameters:
str - input UTF16 string
Returns:
output UTF8 string