<?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[2 txt files are different in notepad , but similar in notepad++]]></title><description><![CDATA[<p dir="auto">Hi<br />
I got 2 txt files that some process in our system is building.<br />
they consist of a list of directories.</p>
<p dir="auto">when I inspect them in notepad 1 file (A) has the directory as a string with no spaces, while the other one (B) has a “space” after each character (which is the proper way we want)</p>
<p dir="auto"><img src="/assets/uploads/files/1634657020050-b38c81fc-36a3-4dd4-9fe2-46189480655b-image.png" alt="b38c81fc-36a3-4dd4-9fe2-46189480655b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">however, when opening both files in notepadd++ - none of them is showing the spaces</p>
<p dir="auto"><img src="/assets/uploads/files/1634657077965-615b55d3-cf39-41c9-b00c-f3a9a0fb2221-image.png" alt="615b55d3-cf39-41c9-b00c-f3a9a0fb2221-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">in show symbols, the “show all characters” is turned on<br />
when i inspect both of the files as hexa they are the same (well at least the prefix which is the same directory)</p>
<p dir="auto">any ideas why notepad++ not showing the spaces?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22014/2-txt-files-are-different-in-notepad-but-similar-in-notepad</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 13:23:24 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22014.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Oct 2021 15:26:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 txt files are different in notepad , but similar in notepad++ on Tue, 26 Oct 2021 08:13:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/70888">2 txt files are different in notepad , but similar in notepad++</a>:</p>
<blockquote>
<p dir="auto">(s) that aren’t recognized are in the</p>
</blockquote>
<p dir="auto">thanks a lot, dude. this really was helpful and insightful !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70901</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70901</guid><dc:creator><![CDATA[amir dar]]></dc:creator><pubDate>Tue, 26 Oct 2021 08:13:34 GMT</pubDate></item><item><title><![CDATA[Reply to 2 txt files are different in notepad , but similar in notepad++ on Mon, 25 Oct 2021 15:30:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amir-dar" aria-label="Profile: amir-dar">@<bdi>amir-dar</bdi></a></p>
<blockquote>
<p dir="auto">why doest MS notepad…</p>
</blockquote>
<p dir="auto">That would technically be a question for a MS forum.  But I will give you my insight, anyway</p>
<blockquote>
<p dir="auto">why doest MS notepad doesn’t interpret the “online” txt as UTF-8 ?</p>
</blockquote>
<p dir="auto">You’ve actually got the question backwords: the oneline text file is the one that MS properly interpreted as UTF-16, because that’s what it is.  The multiline text file is the one that <em>should</em> be read as UTF-16, but for some reason MS reads it as UTF-8 instead, so shows all the null characters as blanks between characters.</p>
<blockquote>
<p dir="auto">why it only see this file as utf-16 , but not other files ?</p>
</blockquote>
<p dir="auto">I am not an expert on Microsoft’s decision making algorithm.</p>
<p dir="auto">My <em>guess</em> is that on the file where MS reads the UTF-16 file as UTF-8 that there is at least one character that isn’t properly encoded as 2-byte UTF-16 (so maybe it has an odd number of bytes in the file, which is technically impossible in a UTF-16 encoded text file, or some garbage character(s) that aren’t recognized are in there).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70888</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70888</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 25 Oct 2021 15:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to 2 txt files are different in notepad , but similar in notepad++ on Mon, 25 Oct 2021 14:50:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> thx for the detailed answer!<br />
one thing that still confuses me - why doest MS notepad doesn’t interpret the “online” txt as UTF-8 ? why it only see this file as utf-16 , but not other files ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70886</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70886</guid><dc:creator><![CDATA[amir dar]]></dc:creator><pubDate>Mon, 25 Oct 2021 14:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to 2 txt files are different in notepad , but similar in notepad++ on Tue, 19 Oct 2021 17:55:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amir-dar" aria-label="Profile: amir-dar">@<bdi>amir-dar</bdi></a></p>
<p dir="auto">I think some studying and understanding of Unicode encoding concepts is in order before you go too much farther along in your current task.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/70685</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70685</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 19 Oct 2021 17:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to 2 txt files are different in notepad , but similar in notepad++ on Tue, 19 Oct 2021 16:55:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amir-dar" aria-label="Profile: amir-dar">@<bdi>amir-dar</bdi></a> ,</p>
<p dir="auto">Notice you put “space” in quotes.  I am betting that is because it’s not really a space, it’s really the 0 byte of the two-byte <em>UTF-16 LE</em> encoding that Windows uses for Unicode files.  Please even note that your “oneline” file in Windows Notepad shows that it’s “UTF-16 LE” (lower right corner) – That file will have the 0-bytes between the characters in the raw form (you don’t show the hexa output; you really should have).</p>
<p dir="auto">Notepad++ then properly sees that the files are encoded as UTF-16 LE, and interprets each two-byte sequence as a single character, <em>because that’s what it is</em>.  It is doing the right thing by not showing 0bytes (which you called “spaces” but are actually NUL bytes when interpreted as a single-byte character).  If you were to look at the lower-right of Notepad++, you would see that it shows UTF-16 LE BOM or similar, as it should: <img src="/assets/uploads/files/1634661510590-2078f62b-0cbf-4dfc-9bb6-5d3c173088b0-image.png" alt="2078f62b-0cbf-4dfc-9bb6-5d3c173088b0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The only bug in the above examples is that MS Notepad is interpreting the “multiline_protected.txt” as UTF-8 instead of the correct UTF-16 LE, and wrongly showing you the 0-bytes as separate characters instead of as part of the character like in “oneline_protected.txt”.</p>
<p dir="auto">--<br />
<em>edit: removed all the incorrect mentions of UCS2-LE (I misrembered which was which when first writing the post).</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/70675</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/70675</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 19 Oct 2021 16:55:25 GMT</pubDate></item></channel></rss>