[SOLVED] German letters not showing properly
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-06
04:27 PM
- last edited on
2022-12-06
02:06 PM
by
Daniel Kassai
2017-06-06
04:27 PM
Hello again,
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:
Thanks in advance,
Julian C.
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:
const char * name = vectorit->name.c_str(); strcpy (attrib.header.name, name);
Thanks in advance,
Julian C.
Labels:
- Labels:
-
Add-On (C++)
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-07 12:36 PM
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);
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-07 01:28 PM
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"...
What else could it be? Just for the record I'm working on xcode 8.3.2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-07 02:17 PM
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);
Ralph Wessel BArch
Central Innovation
Central Innovation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2017-06-07 02:40 PM
2017-06-07
02:40 PM
Thanks Ralph!!! Everything works perfect now. Issue resolved
))
