2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2017-06-06
04:27 PM
- last edited on
2022-12-06
02:06 PM
by
Daniel Kassai
const char * name = vectorit->name.c_str(); strcpy (attrib.header.name, name);
2017-06-07 12:36 PM
jcimentarov wrote:I think that's a text encoding problem. You probably want to set the attribute name using a
I'm tryging to create a new attribute with name "Sto-Dämmplatte Top32", but the ä symbol seems to break like in the image bellow. What could be the possible reason for that? My code is something like that:strcpy (attrib.header.name, name);
2017-06-07 01:28 PM
GS::UniString uniName (vectorit->name.c_str()); attrib.header.uniStringNamePtr = &uniName; WriteReport("uniname is %s", uniName.ToCStr().Get());This is my code, but still when created in Archicad the name looks like this -"Sto-D√§mmplatte Top32". Strangely when I open my console.app it is logged as it should be: "uniname is Sto-Dämmplatte Top32"...
2017-06-07 02:17 PM
jcimentarov wrote:What is the encoding ofGS::UniString uniName (vectorit->name.c_str());
GS::UniString uniName (vectorit->name.c_str(), CC_UTF8);
2017-06-07 02:40 PM