<?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[Different encoding determined based on the file extension]]></title><description><![CDATA[<p dir="auto">I have an xml file which is encoded ISO-8859-1.<br />
With a file extension of .XML, Notepad++ shows encoding as ISO-8859-1<br />
If I remove the file extension, Notepad++ shows the encoding as ANSI</p>
<p dir="auto">Is this a bug that can be fixed?</p>
<p dir="auto">Notepad++ v8.1.9.3   (32-bit)<br />
Build time : Dec  6 2021 - 19:16:45<br />
Path : C:\Program Files (x86)\Notepad++\notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 10 Enterprise (64-bit)<br />
OS Version : 2009<br />
OS Build : 19044.1645<br />
Current ANSI codepage : 1252<br />
Plugins : ComparePlugin.dll DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll XMLTools.dll</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22889/different-encoding-determined-based-on-the-file-extension</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 23:22:04 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22889.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Apr 2022 06:43:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Different encoding determined based on the file extension on Fri, 22 Apr 2022 07:05:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joe-schmitz" aria-label="Profile: joe-schmitz">@<bdi>joe-schmitz</bdi></a></p>
<p dir="auto">No, this is not an error. Some files like xml or html sometimes provide a tag that Npp uses to identify the encoding. If this is not present or Npp does not know that it is an XML or HTML file, it tries to guess the encoding using the chardet module.<br />
So it works as intended. By the way, in this particular case, ISO-8859-1 and your ANSI version (1252) are identical.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76248</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76248</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 22 Apr 2022 07:05:31 GMT</pubDate></item></channel></rss>