std::string SceneParser::GetIDString(BaseList2D* node){
Int memsize=0;
const Char* mem;
node->FindUniqueID(MAXON_CREATOR_ID, mem, memsize);
String ID_STR;
ID_STR.SetCString(mem,memsize);
std::string result=StringToStdString(ID_STR);
return result;
}
Hello. I have this function but when I try the debugger it breaks showing this
DebugStop("Undefined encoding. Use maxon::StringDecodings::Utf8()");
The Debugger Stops in this line "ID_STR.SetCString(mem,memsize);" which is a function of c4d_string.h from the framework.
I understand what the error is but I am not finding the proper way to use "maxon::StringDecodings::Utf8()" so the function will work properly later. Is there any way I can fix this problem.
Thank you in advance!