<?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 to show ascii value of one selected character or a double byte character?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I sometimes copy and paste text from a web page into a text file which ends with “.md”. But sometimes the text has extended ascii characters above the decimal value of 127. I’d like to do a search and replace to replace an extended left double quote, with a normal double quote from the keyboard. Some text editors will show you the ascii value of that extended character in the status bar when your cursor is to the left of the character, or when you select that character but NPP doesn’t seem to do that.</p>
<p dir="auto">Here’s my info:<br />
Notepad++ v8.3.3   (64-bit)<br />
Build time : Mar 13 2022 - 17:20:02<br />
Path : C:\Apps\NPP\notepad++.exe<br />
Command Line : “H:\pandocbooks\00ebookwip\libnews\<a href="http://liblog.md" rel="nofollow ugc">liblog.md</a>”<br />
Admin mode : OFF<br />
Local Conf mode : ON<br />
Cloud Config : OFF<br />
OS Name : Windows 11 (64-bit)<br />
OS Version : 2009<br />
OS Build : 22000.675<br />
Current ANSI codepage : 1252<br />
Plugins : mimeTools.dll NppConverter.dll NppExport.dll</p>
<p dir="auto">NPP says the file is UTF-8 in the status bar.</p>
<p dir="auto">When I try to use the DELETE (not BACKSPACE) key to delete these extended characters it deletes one byte of the character but not the other and NPP seems to get confused. I am unable to see the other byte of the character to delete it.</p>
<p dir="auto">NOTE: Some of these extended characters that end up in the .md text file have 2 bytes. So my request has 2 parts:</p>
<ul>
<li>When hidden characters are displayed I’d like to see these extended ascii characters as 2 bytes, or some other way, so I can delete them both.</li>
<li>I’d like to have NPP show the value of the character I select in the status bar even if the character is composed of 2 bytes.</li>
</ul>
<p dir="auto">Additional info:<br />
Most of the extended characters I find on web pages are left and right double quotes, and the apostrophe. However there are a few other extended ascii characters, like accented letters, that also sometimes show up, plus the occasional copyright symbol. I would like to convert all these types of symbols to low-ascii text with a decimal value less than 128.</p>
<p dir="auto">PSPad can do this but I can no longer use it because sometimes it deletes data in the file while it is editing the file. It has simply become too unstable.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23077/how-to-show-ascii-value-of-one-selected-character-or-a-double-byte-character</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 16:51:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23077.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jun 2022 13:39:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Sun, 19 Jun 2022 11:10:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> said in <a href="/post/77645">How to show ascii value of one selected character or a double byte character?</a>:</p>
<blockquote>
<p dir="auto">I will create an issue on your github page</p>
</blockquote>
<p dir="auto">I did this <a href="https://github.com/shriprem/Goto-Line-Col-NPP-Plugin/issues/31" rel="nofollow ugc">HERE</a>.</p>
<p dir="auto">(Sorry for getting off-topic.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77659</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77659</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 19 Jun 2022 11:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Sat, 18 Jun 2022 01:52:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/16147">@shridhar-kumar</a> said in <a href="/post/77642">How to show ascii value of one selected character or a double byte character?</a>:</p>
<blockquote>
<p dir="auto">I will be happy to implement your suggested enhancement.</p>
</blockquote>
<p dir="auto">That’s great.  I will create an issue on your github page describing what I’m looking for.  If you choose to implement it, great! :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77645</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77645</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 18 Jun 2022 01:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 23:05:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a>, I will be happy to implement your suggested enhancement. I will keep you posted. It might take a while since I am totally occupied with a couple of other projects.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77642</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77642</guid><dc:creator><![CDATA[Shridhar Kumar]]></dc:creator><pubDate>Fri, 17 Jun 2022 23:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 20:49:10 GMT]]></title><description><![CDATA[<p dir="auto">As fine as the script is, I like <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/16147">@Shridhar-Kumar</a> 's plugin for this, as more convenient.  Now if it could only convert the text at the caret into hex/dec/bin equivalents (something I seem to have to do endlessly these days), I’d be truly excited.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77640</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77640</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Jun 2022 20:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 20:25:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in <a href="/post/77638">How to show ascii value of one selected character or a double byte character?</a>:</p>
<blockquote>
<p dir="auto">Did you ever notice this case ?</p>
</blockquote>
<p dir="auto">Nope.</p>
<p dir="auto">I decided to figure out how to tell the difference between EOF and NUL, so <a href="https://github.com/pryrt/nppStuff/blob/a112f134fc8f3c439f3938877dabf59c8a536598/pythonScripts/WhatUniChar.py#L21-L22" rel="nofollow ugc">it is now changed to</a>:</p>
<pre><code>        is_eof = (editor.getCurrentPos()==editor.getLength())
        info = "'{1}' = HEX:0x{0:04X} = DEC:{0} ".format(c, s.encode('utf-8') if c not in [13, 10, 0] else 'LINE-ENDING' if c != 0 else 'END-OF_FILE' if is_eof else 'NUL')
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/77639</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77639</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Jun 2022 20:25:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Sat, 18 Jun 2022 01:45:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Peter</strong>, regarding your <strong><code>WhatUniChar.py</code></strong> <a href="https://github.com/pryrt/nppStuff/blob/main/pythonScripts/WhatUniChar.py" rel="nofollow ugc">script</a>, could you do a <strong>quick</strong> text ?</p>
<ul>
<li>
<p dir="auto">Open any <strong>text</strong> file</p>
</li>
<li>
<p dir="auto">With the <strong><code>Edit &gt; Character Panel</code></strong> menu option, insert a <strong><code>NUL</code></strong> character, roughly, near the <strong>middle</strong> of current file</p>
</li>
<li>
<p dir="auto">Move the cursor <strong>right</strong> before this <strong>NULL</strong> char</p>
</li>
<li>
<p dir="auto">Run your <strong><code>WhatUniChar.py</code></strong> script</p>
</li>
</ul>
<p dir="auto">Did you ever notice this case ? Of course, it quite <strong>easy</strong> to recognize that the <strong>next</strong> char, in <strong>reverse</strong> video, is <strong><code>\x{0000}</code></strong> !</p>
<p dir="auto">Bu, to be rigorous, I changed the <strong>end</strong> of line <strong><code>20</code></strong> of your script into :</p>
<pre><code class="language-py">if c != 0 else 'END-OF-FILE / NUL')
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77638</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77638</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 18 Jun 2022 01:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 18:21:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25164">@c-bacca</a>, you could also try the <a href="https://github.com/shriprem/Goto-Line-Col-NPP-Plugin" rel="nofollow ugc">GotoLineCol</a> plugin. The plugin will display the ANSI byte value, the UTF-8 byte sequence and the Unicode code point. All this info is displayed in the side panel and as a calltip when you navigate the doc using the side panel controls. See the sample clip below.</p>
<p dir="auto">When I find some rare emojis being used on Twitter, I copy &amp; paste it into NPP and use GotoLineCol to ascertain the Unicode info.</p>
<p dir="auto"><img src="/assets/uploads/files/1655489892435-ac778117-9f0f-4e12-83e0-b401a5af9130-image.png" alt="ac778117-9f0f-4e12-83e0-b401a5af9130-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">[<em>DISCLAIMER: I am the author of this plugin.</em>]</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77637</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77637</guid><dc:creator><![CDATA[Shridhar Kumar]]></dc:creator><pubDate>Fri, 17 Jun 2022 18:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 15:18:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25164">@c-bacca</a> ,</p>
<p dir="auto">I cannot find any of the <a href="https://www.fileformat.info/info/unicode/char/search.htm?q=quotation&amp;preview=entity" rel="nofollow ugc">“quotation marks” in Unicode</a> that show that problem in Notepad++.</p>
<p dir="auto">I am wondering if you have an encoding problem: maybe whatever you are copying from is putting a UTF16 sequence as two raw bytes into the clipboard, and the clipboard is pasting the two raw bytes into Notepad++… but if that were the case, I wouldn’t expect the visible character to be “correct” as a smart quote.</p>
<p dir="auto">Using my <code>WhatUniChar.py</code> script linked above will help identify what character(s) are being put into Notepad++.  And the script <a href="https://community.notepad-plus-plus.org/topic/14045/invisible-characters-unwanted/19">here</a> will put little black boxes with text for any (most) invisible characters – so that could also help identify what was going on.  But either of those is going to take you installing PythonScript and actually running the script to tell us more details.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77633</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77633</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Jun 2022 15:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 15:10:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25164">@c-bacca</a></p>
<p dir="auto">You really haven’t given any more info than your first posting.<br />
Have you done everything Peter suggested that you do?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77632</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77632</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Jun 2022 15:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Fri, 17 Jun 2022 15:01:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a> When I paste text into NPP that has smart quotes, (as an example of a 2 byte character) the smart quotes appear in NPP. The problem is I don’t want smart quotes in my UTF-8 file. So I put my cursor to the right of the smart quote, hit the BACKSPACE key once, and the character is deleted, EXCEPT there is now an invisible character (the first byte of the double byte character) that is still there and needs to be deleted by hitting backspace a second time.</p>
<p dir="auto">If I forget to delete that hidden first byte this causes more problems when I try to use the DELETE or BACKSPACE key in that line.</p>
<p dir="auto">The details here are: there appears to be at least 2 pairs of extended ASCII smartquote characters. One that has this problem, the other doesn’t. One set appears to be a single byte of an extended ASCII character above the value of 128. The other appears to be a double byte character, which has the problem I mentioned above.</p>
<p dir="auto">Unfortunately I cannot tell which characters have the problem just by looking at them.</p>
<p dir="auto">Does that make sense?</p>
<p dir="auto">p.s. If I find the website which produces double-byte smart quotes in NPP I will try to update you here so you can do what I do.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/77631</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77631</guid><dc:creator><![CDATA[C Bacca]]></dc:creator><pubDate>Fri, 17 Jun 2022 15:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to show ascii value of one selected character or a double byte character? on Sat, 04 Jun 2022 17:12:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25164">@c-bacca</a> ,</p>
<p dir="auto">If you are willing to use the PythonScript plugin, then install <a href="https://github.com/pryrt/nppStuff/blob/main/pythonScripts/WhatUniChar.py" rel="nofollow ugc">this script</a> following <a href="https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript">these instructions</a> to give yourself an on-demand reference as to what Unicode character is at the current cursor position.</p>
<p dir="auto">But if you are pasting “smart quotes” into a UTF8 tab in Notepad++ and it is not showing up as smart quotes but as multiple characters, then I am confused, because that shouldn’t happen.  Please share a screenshot with those characters and the full status bar shown.</p>
<p dir="auto"><em>Addendum: for example, here is an animated screenshot of my pasting in the “smart quotes” from above, showing the underlying character using the script I linked to, and showing that it only takes a single backspace to delete each smart quote:</em><br />
<img src="https://camo.nodebb.org/9b1834bd07657524ae8eaedfc89918447b8e0624?url=https%3A%2F%2Fi.imgur.com%2FUShzTi9.gif" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/77310</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/77310</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Jun 2022 17:12:35 GMT</pubDate></item></channel></rss>