<?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[How did a zero width space get into my python code]]></title><description><![CDATA[<p dir="auto">I use NP++ for editing all kinds of files including my Jython scripts for JMRI. Somehow a zero width space got into my code. It has taken me weeks to find it. I only solved the problem by adding a space where the zero width space was and then deleted the added space. The zero width pace went away.</p>
<p dir="auto">How does that zero width space get into the code?</p>
<p dir="auto">Dave Sand of the JMRI helped me with the problem and sent me this once I had fixed it:</p>
<p dir="auto">*The original problem is that you created lines 173 and 174 with a zero width space, unicode E2808B, before the left paren.</p>
<p dir="auto">4D 61 73 74 E2 80 8B 28 70<br />
M  a  s  t  .  .  .  (  p</p>
<p dir="auto">A normal space, x20, is ok before the left paren, the unicode zero width space is not.  Make sure that your programming editor is not getting creative.*</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22381/how-did-a-zero-width-space-get-into-my-python-code</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 18:59:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22381.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Jan 2022 20:44:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How did a zero width space get into my python code on Fri, 14 Jan 2022 16:53:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perry-sugerman" aria-label="Profile: perry-sugerman">@<bdi>perry-sugerman</bdi></a></p>
<blockquote>
<p dir="auto">How did a zero width space get into my python code</p>
</blockquote>
<p dir="auto">Beats me, but Notepad++ didn’t do it.</p>
<blockquote>
<p dir="auto">Make sure that your programming editor is not getting creative</p>
</blockquote>
<p dir="auto">I think this is meant to imply again that Notepad++ did it.  I assure you that it did not.</p>
<p dir="auto">Peter’s theory about a paste-in of data from another source is a really good theory.</p>
<p dir="auto">There’s a PythonScript <a href="https://community.notepad-plus-plus.org/post/56581">HERE</a> that you can set up if you want such characters to be very visible in the future.  However, the mechanism used to make them very visible defeats the purpose of their usage (but that sounds like it would be very OK with you).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72964</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72964</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 14 Jan 2022 16:53:40 GMT</pubDate></item><item><title><![CDATA[Reply to How did a zero width space get into my python code on Thu, 13 Jan 2022 21:10:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perry-sugerman" aria-label="Profile: perry-sugerman">@<bdi>perry-sugerman</bdi></a> ,</p>
<p dir="auto">Notepad++ would not add such a character unless you jumped through some major hoops.  My guess is that you copy/pasted from some website that put the U+200B (bytes 0xE2 0x80 0x8B) for web display purposes.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72949</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72949</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Jan 2022 21:10:38 GMT</pubDate></item></channel></rss>