<?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: Character encoding problem -&amp;gt; ARCHICAD export list in UTF-8 --&amp;gt; GDL DATA I/O read the list in ANSI in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274592#M3222</link>
    <description>Yes, you understood me correct. The different is, that I'm using text file to first export to it data from GSM and then import into another GSM. For example I'm entering standard notes, that going to be shown in title blocks, and after title block objects read these notes and show through all project.&lt;BR /&gt;
&lt;BR /&gt;
In your case you already have txt file, generated by another part of program (pen set names) and just want to read it. The only way how you can make it work - probably in notepad use search and replace and change all umlauts to something else.&lt;BR /&gt;
&lt;BR /&gt;
I can share with you my scripts of coder-decoder for Hebrew. This is not exactly what you need, but maybe it will help you to better understand principle how to modify texts via GDL commands.</description>
    <pubDate>Wed, 09 Jun 2021 08:12:30 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2021-06-09T08:12:30Z</dc:date>
    <item>
      <title>Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274589#M3219</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Dear friends of ARCHICAD and GDL,&lt;BR /&gt;&lt;BR /&gt;I have modded the "Pen and Colors" object (contained in the german/austrian libary) so the object can also display the pen description and the thickness of pens in a graphic table. As there is no way to get the description and the thickness directly, I export the pen-set configuration as a list (csv/txt) out from attribute manager and import the values using DATA I/O in the gdl-object. So far everything works as it should... &lt;BR /&gt;BUT: in german language we have special characters like ä, ö, ü, ß... &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" border="0" /&gt; &lt;BR /&gt;ARCHICAD export the pen-set configuration encoded in UTF-8, but the DATA I/O gdl-addon reads the txt-files as encoded in ANSI (Windows 1252). So when the imported values are displayed with "funny" characters in the object instead of Äs, Üs, Ös...&lt;BR /&gt;&lt;BR /&gt;At the moment I do a character encoding convertion using 'notepad++', but this is not useable for 'my users' (architects not developer &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_confused.gif" border="0" /&gt; )&lt;BR /&gt;Is there a chance to define the character encoding the DATA I/O addon should use interpreting the list (txt/csv)?&lt;BR /&gt;Or is it possible to define the encoding for the exported txt-file in the attribute manager?&lt;BR /&gt;&lt;BR /&gt;...or do you know another way to come to a right character display in the object?&lt;BR /&gt;&lt;BR /&gt;I hope you can help me to solve this issue - and perhaps someone from GRAPHISOFT also reads this post and in the future ARCHICAD will use the same character encoding for read/write or import/export txt/ascii files... &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" border="0" /&gt; &lt;BR /&gt;&lt;BR /&gt;thank you for your help,&lt;BR /&gt;best regards from vienna,&lt;BR /&gt;Yours, Klaus&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:07:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274589#M3219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274590#M3220</link>
      <description>I faced to similar problem when was using I/O Text Add-On for GDL for saving some data in Hebrew. When GSM files do support another languages (Hebrew, Russian), text files coming only in English. The reason, I think, because this add-on is very very old since time when different language support was a problem in many programs - like time of Windows 95 or similar. I was able to sort this out only by making special translator, where script detects Hebrew letters in given text and translates it into another symbol. For example א - ::A, ב - ::B etc. When script is reading encoded text file, it decoding it back to Hebrew. Another way to solve it I didn’t find.</description>
      <pubDate>Tue, 08 Jun 2021 23:26:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274590#M3220</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-06-08T23:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274591#M3221</link>
      <description>Dear Podolsky,&lt;BR /&gt;
&lt;BR /&gt;
thank you for your fast reply.&lt;BR /&gt;
&lt;BR /&gt;
Please let me see, if I have understood you correctly....&lt;BR /&gt;
&lt;BR /&gt;
1) you read/import the value from the txt-list file using TEXT I/O or DATA I/O&lt;BR /&gt;
&lt;BR /&gt;
2) in the value of the new parameter/variable you search for "special characters" and change them to "ASCII" characters (ascii decimal code below '128') (i.e.  for "Ä" change to "Ae") using a "string exchange operation"  (I do not know the right command/syntax doing this - perhaps you can help me :roll) &lt;BR /&gt;
&lt;BR /&gt;
3) in the "object-output" you use the "changed string", which only contain characters in "ASCII encoding below 128" which get the same character in (nearly) all character encodings...&lt;BR /&gt;
&lt;BR /&gt;
...have I understood your solution right?&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help,&lt;BR /&gt;
Yours, Klaus</description>
      <pubDate>Wed, 09 Jun 2021 00:01:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274591#M3221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-09T00:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274592#M3222</link>
      <description>Yes, you understood me correct. The different is, that I'm using text file to first export to it data from GSM and then import into another GSM. For example I'm entering standard notes, that going to be shown in title blocks, and after title block objects read these notes and show through all project.&lt;BR /&gt;
&lt;BR /&gt;
In your case you already have txt file, generated by another part of program (pen set names) and just want to read it. The only way how you can make it work - probably in notepad use search and replace and change all umlauts to something else.&lt;BR /&gt;
&lt;BR /&gt;
I can share with you my scripts of coder-decoder for Hebrew. This is not exactly what you need, but maybe it will help you to better understand principle how to modify texts via GDL commands.</description>
      <pubDate>Wed, 09 Jun 2021 08:12:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274592#M3222</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-06-09T08:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274593#M3223</link>
      <description>Guys, how about the XML Add-On? Can you use that for this purpose? &lt;BR /&gt;
It is a much newer GDL Add-On so it might support UTF-8.</description>
      <pubDate>Fri, 11 Jun 2021 07:45:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274593#M3223</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2021-06-11T07:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274594#M3224</link>
      <description>Hi catch17,&lt;BR /&gt;
&lt;BR /&gt;
The opened file is read as UTF-8 only if it has a BOM (for backwards compatibility). &lt;BR /&gt;
Maybe you could give your users a simple bat/command file that adds the BOM.</description>
      <pubDate>Mon, 14 Jun 2021 13:14:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274594#M3224</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-06-14T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274595#M3225</link>
      <description>Thank you all for your replies!  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
well, I hve done a lot of testing, scripting and googeling &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; in the meantime...&lt;BR /&gt;
&lt;BR /&gt;
what I find out:&lt;BR /&gt;
&lt;BR /&gt;
I need not change i.e. "ü" to "ue" - all works fine when I use the notepad++ 'menue-command': "Convert to ANSI" --&amp;gt; all the special characters are displayed correctly...&lt;BR /&gt;
&lt;BR /&gt;
when I convert the file to "UTF-8 BOM", it will not work - I get the "funny chars" in the gdl-object...&lt;BR /&gt;
&lt;BR /&gt;
I am not successful creating a batch-cmd-file to convert the txt-file, although I do lot of googeling, testing etc. and though I am not a "Newbe" scripting cmd/bat-files  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
...so at the moment I have only the choice "extra converting work in notepad++" or getting the "funny chars" in the object displayed...&lt;BR /&gt;
&lt;BR /&gt;
perhaps some of you have a better idea than loosing this war against the char-encoding possibilities  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
I am really gald for every hint some of you can give me...&lt;BR /&gt;
&lt;BR /&gt;
best regards from (really hot  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt;  ) vienna,&lt;BR /&gt;
Yours, Klaus</description>
      <pubDate>Fri, 18 Jun 2021 00:07:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274595#M3225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-18T00:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274596#M3226</link>
      <description>Hi Klaus&lt;BR /&gt;
&lt;BR /&gt;
For me "UTF8 with BOM" works just fine.&lt;BR /&gt;
It is important that the text file is saved with the correct encoding. In my case I write to an existing well formated file.&lt;BR /&gt;
&lt;BR /&gt;
VS Code: create a new file, click in the right lower corner on "UTF8". Then a dropdown appears. Select "UTF with BOM". Save. Then refer to this file in Archicad or load it into the embedded libraray.&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Fri, 18 Jun 2021 09:42:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274596#M3226</guid>
      <dc:creator>Dominic Wyss</dc:creator>
      <dc:date>2021-06-18T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Character encoding problem -&gt; ARCHICAD export list in UTF-8 --&gt; GDL DATA I/O read the list in ANSI</title>
      <link>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274597#M3227</link>
      <description>&lt;BLOCKQUOTE&gt;catch17 wrote:&lt;BR /&gt;
well, I hve done a lot of testing, scripting and googeling &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt; in the meantime...
&lt;/BLOCKQUOTE&gt;

&lt;A href="https://superuser.com/questions/1163753/converting-text-file-to-utf-8-on-windows-command-prompt" target="_blank"&gt;First result on Google.&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You can't do it with a BAT file. Take powershell instead.&lt;BR /&gt;
This snippet indeed sets the BOM when converting from cp1252 zo utf-8.
&lt;PRE&gt;Get-Content .\test.txt | Set-Content -Encoding utf8 test-utf8.txt&lt;/PRE&gt;

With a loop you can even convert a whole folder.&lt;BR /&gt;
&lt;BR /&gt;
Greetings from hot Berlin to Vienna, Klaus &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Fri, 18 Jun 2021 10:53:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Character-encoding-problem-gt-ARCHICAD-export-list-in-UTF-8-gt/m-p/274597#M3227</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2021-06-18T10:53:17Z</dc:date>
    </item>
  </channel>
</rss>

