Differing character counts
Differing character counts: https://filehorst.de/d/ejdbehxI
When I paste text from Word into Notepad++ 8.4.4 64bit, I often get a different character count than when I type in Notepad++ directly.
The linked file above (I hope the link works) shows two lines with exactly the same characters and looking like the same length, too, but the first line is counted with 117 characters and the second with 119.
As there is no visible difference, I wonder how this can be explained.
The file is UTF-8 and the text copied from Word was in Arial Unicode.
Any pointers will be appreciated.
I used moderator power to fix the link for you.
However, I do not download files from random file hosts like that (you never know when a virus is at the other end of such a link), so I don’t know what your file might look like, so I have to guess from your description. Many other regular helpers on the forum follow the same rule.
With a difference of two bytes, I am assuming that one file had a newline (CR LF is two bytes) at the end of the file, and the other didn’t.
If you turn on View > Show Symbol > Show All Characters, it will show visible markings for spaces, tabs, and CR/LF:
If this wasn’t enough for you, please do a screenshot with that View turned on (and just paste the screenshot directly to embed the image, like I did above), so that we can see if we can spot any other difference between the 117 byte and 119 byte version.
Or, it could be a problem similar to this one, in regards to two things that seemingly look identical, are really not: