<?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: When JMP’s system setting is Charset(&amp;quot;utf-8&amp;quot;), how can a variable be automatically saved as a txt file in Charset(&amp;quot;gb2312&amp;quot;) format? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948719#M109789</link>
    <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Preference( Open Text File Charset( "gb2312" ) );
Preference( Save Text Files as Unicode( 0 ) );
Save Text File( 径1, 新文);
Preference( Open Text File Charset( "utf-8" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 17 May 2026 11:01:07 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2026-05-17T11:01:07Z</dc:date>
    <item>
      <title>When JMP’s system setting is Charset("utf-8"), how can a variable be automatically saved as a txt file in Charset("gb2312") format?</title>
      <link>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948694#M109787</link>
      <description>&lt;P&gt;Is changing the system setting to Charset("gb2312") the only way to save a variable as a txt file in Charset("gb2312") format?&lt;/P&gt;
&lt;P&gt;On a 64-bit Simplified Chinese Windows 11 system.&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="截图.png" style="width: 828px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/103795i6BBE06A635458FFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="截图.png" alt="截图.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2026 09:20:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948694#M109787</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-05-17T09:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: When JMP’s system setting is Charset("utf-8"), how can a variable be automatically saved as a txt file in Charset("gb2312") format?</title>
      <link>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948716#M109788</link>
      <description>&lt;P&gt;Yes, except I think there is an exception if a file is opened in the jsl editor from a gb2312 encoded file. Saving that editor window back to the *same* file might use the original file's charset. &lt;BR /&gt;I think savetextfile() also has a charset parameter, you might search the scripting index ... I think there might be another function that uses an explicit charset.&lt;/P&gt;
&lt;P&gt;edit: Only loadTextFile() and open() have the charset option, for reading. Wish list here:&amp;nbsp;&amp;nbsp;&lt;LI-MESSAGE title="charset for saveTextFile" uid="948750" url="https://community.jmp.com/t5/JMP-Wish-List/charset-for-saveTextFile/m-p/948750#U948750" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2026 14:45:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948716#M109788</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2026-05-17T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: When JMP’s system setting is Charset("utf-8"), how can a variable be automatically saved as a txt file in Charset("gb2312") format?</title>
      <link>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948719#M109789</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Preference( Open Text File Charset( "gb2312" ) );
Preference( Save Text Files as Unicode( 0 ) );
Save Text File( 径1, 新文);
Preference( Open Text File Charset( "utf-8" ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 May 2026 11:01:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/When-JMP-s-system-setting-is-Charset-quot-utf-8-quot-how-can-a/m-p/948719#M109789</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2026-05-17T11:01:07Z</dc:date>
    </item>
  </channel>
</rss>

