static std::string NativeToUTF8()

in src/fbx/Fbx2Raw.cpp [37:55]


static std::string NativeToUTF8(const std::string& str) {
#if _WIN32
  char* u8cstr = nullptr;
#if (_UNICODE || UNICODE)
  FbxWCToUTF8(reinterpret_cast<const char*>(str.c_str()), u8cstr);
#else
  FbxAnsiToUTF8(str.c_str(), u8cstr);
#endif
  if (!u8cstr) {
    return str;
  } else {
    std::string u8str = u8cstr;
    delete[] u8cstr;
    return u8str;
  }
#else
  return str;
#endif
}