<?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: Unicode characters problem in AutoCAD 2025 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711247#M4516</link>
    <description>&lt;P&gt;Hi Kdub,&lt;/P&gt;&lt;P&gt;I don't think it has to do with AutoLisp. After all, my applications worked fine in previous versions of AutoCAD (2024 and prior) with LISPSYS = 0. I will try changing the encoding of the text file while creating it in VB.NET.&lt;/P&gt;&lt;P&gt;Thank you all for your answers.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 07:24:53 GMT</pubDate>
    <dc:creator>ziggy63</dc:creator>
    <dc:date>2024-04-16T07:24:53Z</dc:date>
    <item>
      <title>Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12703850#M4511</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;In my applications I use both VB.NET and AutoLISP. Some VB.NET applications create temporary text files (*.txt) that are then read by a Lisp function. As I live in Greece, these files include many Unicode characters.&amp;nbsp;After having upgraded my BV.NET projects from .NET Framework to .NET 8.0, the Unicode characters are not read correctly by Lisp. For example, this is a screenshot from AutoCAD 2024:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ziggy63_0-1712906679848.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1348854iE5D376259E1ED991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ziggy63_0-1712906679848.png" alt="ziggy63_0-1712906679848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is the same screenshot from AutoCAD 2025:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ziggy63_2-1712906786724.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1348856i1DCCB7FB52C1943C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ziggy63_2-1712906786724.png" alt="ziggy63_2-1712906786724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I haven't changed anything in my VB.NET projects, I have just upgraded them, using the Upgrade Assistant. To create the temporary files, I use the "FileOpen" function. When I open the txt file with Notepad, the Unicode characters appear correctly (for example "Δ" or "%%c"). But when Lisp opens the file, it produces gibberish. I know that all this sounds... Greek to you, but does anybody know why this is happening? Does "FileOpen" behave differently in .NET than it does in .NET Framework?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;ziggy63&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 07:45:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12703850#M4511</guid>
      <dc:creator>ziggy63</dc:creator>
      <dc:date>2024-04-12T07:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12709195#M4512</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not sure to be able to help, but I would start with differentiating if the issue is from your VB.NET code now writing the LISP file (content of the LISP file has already issues) or running the LISP then in AutoCAD 2025.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let your VB.NET code for 2024 write the LISP-file, then run the LISP in AutoCAD 2025 ... and vice versa:&lt;/P&gt;
&lt;P&gt;Let your VB.NET code for 2025 write the LISP-file, then run the LISP in AutoCAD 2024&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When do you now see the issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 11:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12709195#M4512</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2024-04-15T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711106#M4513</link>
      <description>&lt;P&gt;Hi Alfred,&lt;/P&gt;&lt;P&gt;I tried what you suggested and the result is the same: the culprit is VB.NET for AutoCAD 2025. The problem has to do with the encoding of the txt file. In the previous versions of AutoCAD, the encoding of the file was "ANSI", now it is "UTF-8". So, if I find out how to change the encoding of the text file created by of the "FileOpen" function, the problem will be solved.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ziggy63&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 06:07:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711106#M4513</guid>
      <dc:creator>ziggy63</dc:creator>
      <dc:date>2024-04-16T06:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711186#M4514</link>
      <description>&lt;P&gt;I thought you could specify encodings in .NET?&lt;/P&gt;&lt;P&gt;Maybe use StreamReader, StreamWriter with System.Text.Encoding&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 06:55:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711186#M4514</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-04-16T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711189#M4515</link>
      <description>&lt;P&gt;You may need to look at this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-AC74D827-0969-4888-91C0-C3149DEC3659" target="_blank"&gt;https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-AC74D827-0969-4888-91C0-C3149DEC3659&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the &lt;SPAN&gt;LISPSYS system variable determines if AutoLisp treats strings as ANSI or UTF-8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;. . . probably worth checking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 06:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711189#M4515</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-04-16T06:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711247#M4516</link>
      <description>&lt;P&gt;Hi Kdub,&lt;/P&gt;&lt;P&gt;I don't think it has to do with AutoLisp. After all, my applications worked fine in previous versions of AutoCAD (2024 and prior) with LISPSYS = 0. I will try changing the encoding of the text file while creating it in VB.NET.&lt;/P&gt;&lt;P&gt;Thank you all for your answers.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 07:24:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12711247#M4516</guid>
      <dc:creator>ziggy63</dc:creator>
      <dc:date>2024-04-16T07:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12712941#M4517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6713772"&gt;@ziggy63&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer the&amp;nbsp;&amp;nbsp;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;Comparison with other encodings section&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/UTF-8#See_also:~:text=of%20invalid%20input.-,Comparison%20with%20other%20encodings,-%5Bedit%5D" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/UTF-8#See_also:~:text=of%20invalid%20input.-,Comparison%20with%20other%20encodings,-%5Bedit%5D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using UTF-8 for Greek characters I can't imagine why you would force AutoLISP to read the strings as ACSII by using &lt;SPAN&gt;LISPSYS = 0 ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;added :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Though, I must admit, the documentation in the AutoLisp docs is a little vague regarding the requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 20:42:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12712941#M4517</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-04-16T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12712977#M4518</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6713772"&gt;@ziggy63&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8575899"&gt;@daniel_cadext&lt;/a&gt;&amp;nbsp;mentioned, how are you writing the file ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;perhaps try something like&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/csharp/language-compilers/read-write-text-file#write-a-text-file-example-2" target="_blank"&gt;https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/csharp/language-compilers/read-write-text-file#write-a-text-file-example-2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 20:55:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12712977#M4518</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2024-04-16T20:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode characters problem in AutoCAD 2025</title>
      <link>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12713826#M4519</link>
      <description>&lt;P&gt;Yes, I think I will change the way I create the text file, and hope this will solve the problem.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ziggy63&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 07:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unicode-characters-problem-in-autocad-2025/m-p/12713826#M4519</guid>
      <dc:creator>ziggy63</dc:creator>
      <dc:date>2024-04-17T07:11:10Z</dc:date>
    </item>
  </channel>
</rss>

