<?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[selection length issue with char §]]></title><description><![CDATA[<p dir="auto">i wonder, why when selecting text (like “1111§§§§2222”) within notpad++ says “Sel: 8” instead of “Sel: 12”.<br />
the § char is not counted … this is irritating. replacing § with any other char the selection length is correct.</p>
<p dir="auto">placing the cursor at the end of text then np++ (correctly) is displaying “Col: 13” for all used chars.</p>
<p dir="auto">any idea?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15600/selection-length-issue-with-char</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 08:31:19 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15600.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Apr 2018 06:37:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to selection length issue with char § on Wed, 18 Apr 2018 20:37:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/11810">@smth76</a> and <strong>All</strong>,</p>
<p dir="auto">Yeah, in an <strong>ANSI</strong> encoded file, <strong>any</strong> character, with <strong>Unicode</strong> value, between <strong><code>\x80</code></strong> to <strong><code>\xBF</code></strong>, is <strong>NOT</strong> taken in account :-(( It’s a <strong>very old</strong> bug. In an <strong>encoded ANSI</strong> file, you can search these characters with the regex <strong><code>[\x80-\xbF]</code></strong></p>
<p dir="auto">On my laptop, as I’m <strong>French</strong>, the <strong>NON</strong> Unicode encoding used, in <strong>ANSI</strong>, is the <strong>Windows-1252</strong> encoding</p>
<p dir="auto"><strong>Luckily</strong>, nowadays, it’s better to use any <strong>Unicode</strong> encoding, that is to say, any other encoding but <strong>ANSI</strong> ;-)) In that case, the selection of <strong>all</strong> these characters do give the <strong>expected</strong> result : <strong><code>64</code></strong> characters <strong>selected</strong></p>
<p dir="auto">In an <strong>Unicode encoded</strong> file, these characters may be found with, <strong>either</strong>, the regexes :</p>
<ul>
<li>
<p dir="auto"><strong><code>[\x80-\xbF]</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>[\x{80}-\x{bF}]</code></strong></p>
</li>
<li>
<p dir="auto"><strong><code>[\x{0080}-\x{00bF}]</code></strong></p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31741</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31741</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 18 Apr 2018 20:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to selection length issue with char § on Wed, 18 Apr 2018 11:59:03 GMT]]></title><description><![CDATA[<p dir="auto">little update: it’s only happening on ANSI, when doing this on UTF-8 it’s all fine …</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31724</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31724</guid><dc:creator><![CDATA[smth76]]></dc:creator><pubDate>Wed, 18 Apr 2018 11:59:03 GMT</pubDate></item></channel></rss>