<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bug report for format convert！]]></title><description><![CDATA[<p dir="auto">When I convert a text file from UTF-8 to ANSI (Encoding &gt; Convert to ANSI), the save and reopen the file, but it still show the format is UTF-8!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17452/bug-report-for-format-convert</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 05:43:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17452.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Apr 2019 13:12:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug report for format convert！ on Sun, 14 Apr 2019 19:39:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/%E5%BC%A0%E9%94%8B" aria-label="Profile: 张锋">@<bdi>张锋</bdi></a>, and <strong>All</strong>,</p>
<p dir="auto">Probably, your text contains <strong>NO</strong> character with <strong>Unicode</strong> value over <strong><code>\x{007F}</code></strong> ;-))</p>
<p dir="auto">Remember that, when the <strong>Unicode</strong> value of a character is :</p>
<ul>
<li>
<p dir="auto">Under <strong><code>\x{0080}</code></strong>, the N++ <strong>ANSI</strong> and <strong>UTF-8</strong> encodings are <strong>strictly</strong> equivalent and use <strong><code>1</code></strong> <strong>byte</strong> to encode the character</p>
</li>
<li>
<p dir="auto">Over <strong><code>\x{007F}</code></strong>, the <strong>UTF-8</strong> and <strong>UTF-8 BOM</strong> encodings use from <strong><code>2</code></strong> to <strong><code>4</code></strong> <strong>bytes</strong>, whereas the <strong>ANSI</strong> encoding <strong>still</strong> use a <strong><code>1</code></strong> byte to <strong>encode</strong> that character !</p>
</li>
</ul>
<p dir="auto">So, if your text contains only <strong>pure ASCII</strong> characters ( under <strong><code>\x{0080}</code></strong> ), there <strong>no</strong> way, for Notepad++, on opening that file, to determine the <strong>right</strong> encoding, and it chooses, by <strong>default</strong>, the <strong>UTF-8</strong> encoding, ( which does <strong>not</strong> contain the invisible <strong><code>BOM</code></strong> : <strong>Byte Order Mark</strong> )</p>
<p dir="auto">So, to be sure that the <strong>ANSI</strong> encoding will be <strong>kept</strong>, just change this <strong>default</strong> behavior :</p>
<ul>
<li>
<p dir="auto">Choose the <strong><code>Settings &gt; Preferences &gt; New document</code></strong> option</p>
</li>
<li>
<p dir="auto">In the <strong>Encoding</strong> section, just <strong>uncheck</strong> the squared box <strong><code>Apply to opened ANSI files</code></strong></p>
</li>
<li>
<p dir="auto">Close the <strong>Preferences</strong> dialog , by clicking on the <strong><code>Close</code></strong> button</p>
</li>
<li>
<p dir="auto">Preferably, <strong>stop</strong> and <strong>re-start</strong> Notepad++</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42254</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42254</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 14 Apr 2019 19:39:59 GMT</pubDate></item></channel></rss>