<?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[Non printable characters are replaced by space characters when copied, how to prevent that from happening?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to edit files that are stored in a custom file format in Notepad++. The format of the files files is not really a text-format, but it has some similarities and Notepad++ is able to display the contents very nicely. I turn on the option to show all characters, so that I can easily see the difference between text characters and other characters that make up te file.<br />
I do have a problem when copying data around in the editor. When I select a part of the file that contains non-printable characters (with value &lt; 32), these characters will be replaced with a space character (value 32) when pasted somewhere else in the editor. I do not want that, I want the data to be copied without any changes. Is that possible with Notepad++? I did not find an option yet that can do this.</p>
<p dir="auto">Ramon</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18421/non-printable-characters-are-replaced-by-space-characters-when-copied-how-to-prevent-that-from-happening</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 17:40:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18421.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Oct 2019 11:14:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:50:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks for looking this up. It makes more sense now. I now assigned some keyboard shortcuts to the binary copy and paste commands.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48101</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48101</guid><dc:creator><![CDATA[Ramon Beiboer]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:34:54 GMT]]></title><description><![CDATA[<p dir="auto">Seems like Copy/PasteBinary has its origin <a href="https://sourceforge.net/p/scintilla/bugs/1289/" rel="nofollow ugc">here</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48100</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48100</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:29:15 GMT]]></title><description><![CDATA[<p dir="auto">It seems the NULL char is the problem and now I remember that I read<br />
somewhere that scintilla handles this differently because of the issue<br />
that C-Strings a NULL terminated or so (not 100% sure)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48099</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48099</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:29:15 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:24:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramon-beiboer" aria-label="Profile: Ramon-Beiboer">@<bdi>Ramon-Beiboer</bdi></a> said in <a href="/post/48095">Non printable characters are replaced by space characters when copied, how to prevent that from happening?</a>:</p>
<blockquote>
<p dir="auto">I now wonder if this has to do with how the application stores the copied data in the clipboard</p>
</blockquote>
<p dir="auto">Probably a Scintilla thing.  Scintilla often does what it thinks is the “safe” thing with clipboard data.</p>
<p dir="auto">Another example is when pasting line-endings.  It will paste line-endings appropriate for the current document, regardless of what type of line-endings are in the clipboard.  Scintilla is configurable in this regard, but when Notepad++ sets it up, it doesn’t alter this behavior.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48097</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48097</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:24:19 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:21:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ramon-beiboer" aria-label="Profile: ramon-beiboer">@<bdi>ramon-beiboer</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Yes, <strong>Alan</strong> is perfectly <strong>right</strong> about it :-)) I’ve just tried it, opening the <strong><code>notepad++.exe</code></strong> <strong>executable</strong> file, …in N++, then doing a correct <strong><code>Copy/ Paste</code></strong> operation in a <strong>new</strong> tab</p>
<ul>
<li>
<p dir="auto">First of all, <strong>verify</strong> that the part of file <strong>to be copied</strong> and your <strong>new</strong> tab have the <strong>same</strong> encoding</p>
</li>
<li>
<p dir="auto">Copy your data, using the <strong><code>Edit &gt; Paste Special &gt; Copy Binary Content</code></strong> option</p>
</li>
<li>
<p dir="auto">Paste your data, in the <strong>new</strong> tab, using <strong><code>Edit &gt; Paste Special &gt; Paste Binary Content</code></strong> option</p>
</li>
</ul>
<p dir="auto">Et voilà :-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48096</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48096</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 12:16:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> It looks like the Copy Binary Content and Paste Binary Content commands do the trick! You have to use both binary versions of the copy and paste commands, otherwise it will not copy everything, or mess up the data. I now wonder if this has to do with how the application stores the copied data in the clipboard.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> I am using Notepad++ v7.5.6 (64 bit)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48095</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48095</guid><dc:creator><![CDATA[Ramon Beiboer]]></dc:creator><pubDate>Mon, 28 Oct 2019 12:16:57 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 11:54:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramon-beiboer" aria-label="Profile: Ramon-Beiboer">@<bdi>Ramon-Beiboer</bdi></a></p>
<p dir="auto">The <code>Edit</code> menu’s <code>Paste Special</code> submenu has some options for copy/paste of binary content.  Maybe try these and see if there is any difference?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48091</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48091</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 28 Oct 2019 11:54:58 GMT</pubDate></item><item><title><![CDATA[Reply to Non printable characters are replaced by space characters when copied, how to prevent that from happening? on Mon, 28 Oct 2019 11:32:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ramon-beiboer" aria-label="Profile: Ramon-Beiboer">@<bdi>Ramon-Beiboer</bdi></a></p>
<p dir="auto">doesn’t seem to happen for me.<br />
Which npp version do you use? (can be found as debug-info from last menu item the ? menu)</p>
<p dir="auto">Can you provide some sample doc/text?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/48090</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/48090</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 28 Oct 2019 11:32:32 GMT</pubDate></item></channel></rss>