<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: German letters not showing properly in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289281#M5234</link>
    <description>Thanks Ralph!!! Everything works perfect now. Issue resolved &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;))</description>
    <pubDate>Wed, 07 Jun 2017 12:40:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-07T12:40:55Z</dc:date>
    <item>
      <title>[SOLVED] German letters not showing properly</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289277#M5230</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello again,&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;const char * name = vectorit-&amp;gt;name.c_str();
                
strcpy (attrib.header.name, name);
&lt;/PRE&gt;
&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Julian C.&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68534i3BBB3145D376C2A7/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Screen Shot 2017-06-06 at 17.20.07.png" title="Screen Shot 2017-06-06 at 17.20.07.png" /&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:06:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289277#M5230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: German letters not showing properly</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289278#M5231</link>
      <description>&lt;BLOCKQUOTE&gt;jcimentarov wrote:&lt;BR /&gt;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:&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;strcpy (attrib.header.name, name);
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
I think that's a text encoding problem. You probably want to set the attribute name using a &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;GS::UniString&lt;E&gt;&lt;/E&gt;, in which case you would set &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;uniStringNamePtr&lt;E&gt;&lt;/E&gt; rather than &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;name&lt;E&gt;&lt;/E&gt; in the attribute header. That should ensure the string encoding is correctly interpreted and preserved.</description>
      <pubDate>Wed, 07 Jun 2017 10:36:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289278#M5231</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2017-06-07T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: German letters not showing properly</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289279#M5232</link>
      <description>&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt; GS::UniString uniName (vectorit-&amp;gt;name.c_str());
                
 attrib.header.uniStringNamePtr = &amp;amp;uniName;
                
 WriteReport("uniname is %s", uniName.ToCStr().Get());
&lt;/PRE&gt;

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"... &lt;BR /&gt;
&lt;BR /&gt;
What else could it be? Just for the record I'm working on xcode 8.3.2</description>
      <pubDate>Wed, 07 Jun 2017 11:28:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289279#M5232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: German letters not showing properly</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289280#M5233</link>
      <description>&lt;BLOCKQUOTE&gt;jcimentarov wrote:&lt;BR /&gt;&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt; GS::UniString uniName (vectorit-&amp;gt;name.c_str());
 &lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
What is the encoding of &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;vectorit-&amp;gt;name&lt;E&gt;&lt;/E&gt;? You need to pass the encoding type to the constructor of GS:&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://community.graphisoft.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tringor it may interpret it incorrectly, e.g. if the encoding is UTF-8:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt; GS::UniString uniName (vectorit-&amp;gt;name.c_str(), CC_UTF8);
&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:17:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289280#M5233</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2017-06-07T12:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: German letters not showing properly</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289281#M5234</link>
      <description>Thanks Ralph!!! Everything works perfect now. Issue resolved &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;))</description>
      <pubDate>Wed, 07 Jun 2017 12:40:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-German-letters-not-showing-properly/m-p/289281#M5234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T12:40:55Z</dc:date>
    </item>
  </channel>
</rss>

