Well, I'm using NotePad++ and I can't see that at all! What is the best text file reader for this kind of problems?

The problem is, a ‘good’ text editor should be able to load all text encodings transparently — even stupid broken ones like UTF-8-plus-BOM — which would prevent you from seeing the problem. Sure, a good text editor should save UTF-8 without the bogus-BOM, or at least give you the option to do so, but you won't know to re-save it if you don't see the faux-BOM there.

The reason you see the three high-bytes at the start of the file in TextMate is actually because TextMate has got it wrong and guessed the encoding as Latin-1 instead of UTF-8. This presumably reproduces the behaviour of the service you're sending to which don't know about Unicode, but it's not really a desirable feature in itself. It's also why the æ​s and ø​s haven't come out.

If you want to see every byte in the file explicitly, what you want isn't really a text editor, but a hex editor. There are lots to choose from, eg. xvi32 on Windows.

And then fix your application to not produce bogus BOMs; they have no place in a UTF-8 file anyway, never mind the problems it causes to non-Unicode applications. [I don't know what the application is written in, but a common cause of unwanted BOMs is using .NET's Encoding.UTF8 encoding. A new UTF8Encoding(false) would be preferable.]

Whether the service you're sending to wants UTF-8 or some other encoding is in any case something you'll have to ask the operators of that service. If they're already describing the high-bytes for æ et al in your file as inherently ‘invalid’, you may be facing a situation where they don't support any non-ASCII characters at all, in which case you'll have to consider transliterating characters appropriately for the target language, eg. æ->ae.

Answer from bobince on Stack Exchange
🌐
Originality.AI
originality.ai › blog › invisible-text-detector-remover
Invisible Text Detector & Remover – Originality.AI
October 17, 2025 - Use this free tool to find and remove all hidden Unicode characters in your text. LLMs like ChatGPT can inject hidden characters like Em-Dash or Zero Width Space into text. This free tool helps identify them and remove the ones you don’t want
Top answer
1 of 3
4

Well, I'm using NotePad++ and I can't see that at all! What is the best text file reader for this kind of problems?

The problem is, a ‘good’ text editor should be able to load all text encodings transparently — even stupid broken ones like UTF-8-plus-BOM — which would prevent you from seeing the problem. Sure, a good text editor should save UTF-8 without the bogus-BOM, or at least give you the option to do so, but you won't know to re-save it if you don't see the faux-BOM there.

The reason you see the three high-bytes at the start of the file in TextMate is actually because TextMate has got it wrong and guessed the encoding as Latin-1 instead of UTF-8. This presumably reproduces the behaviour of the service you're sending to which don't know about Unicode, but it's not really a desirable feature in itself. It's also why the æ​s and ø​s haven't come out.

If you want to see every byte in the file explicitly, what you want isn't really a text editor, but a hex editor. There are lots to choose from, eg. xvi32 on Windows.

And then fix your application to not produce bogus BOMs; they have no place in a UTF-8 file anyway, never mind the problems it causes to non-Unicode applications. [I don't know what the application is written in, but a common cause of unwanted BOMs is using .NET's Encoding.UTF8 encoding. A new UTF8Encoding(false) would be preferable.]

Whether the service you're sending to wants UTF-8 or some other encoding is in any case something you'll have to ask the operators of that service. If they're already describing the high-bytes for æ et al in your file as inherently ‘invalid’, you may be facing a situation where they don't support any non-ASCII characters at all, in which case you'll have to consider transliterating characters appropriately for the target language, eg. æ->ae.

2 of 3
6

An easy way to view this kind of stuff in Windows is to use the "type" command.

I would do something like this:

type filename.txt | more
Discussions

bash - Identify and remove specific hidden characters from text file - Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives ... Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... Save this question. Show activity on this post. I have a text file that contains several hidden characters... More on stackoverflow.com
🌐 stackoverflow.com
Hidden character in text file

Likely an ASCII character that did not convert correctly. Try using NotePad++ or something non-Microsoft to make sure the CLRF (carriage return, line feed) characters are displaying as expected. Otherwise it could be a control character that is being used for some reason.

More on reddit.com
🌐 r/sysadmin
8
10
April 26, 2016
binary - How to find non-printable character in text file - Stack Overflow
I have a text file that is processed by a third party. They told me the file is invalid because it contains a non-printable character. What's the best way to find the non-printable character as my ... More on stackoverflow.com
🌐 stackoverflow.com
Hidden characters in text file
Find answers to Hidden characters in text file from the expert community at Experts Exchange More on experts-exchange.com
🌐 experts-exchange.com
August 3, 2015
People also ask

How do I detect invisible characters in my text?
Paste your text into the input field and click Analyze. The tool scans for 30+ types of invisible Unicode characters, highlights their exact positions in the text, identifies the Unicode code point (e.g., U+200B), and gives you a count by type. Each detected character is shown inline so you can see exactly where it is hiding.
🌐
moreonlinetools.com
moreonlinetools.com › home › text tools › invisible character detector
Invisible Character Detector — Find & Remove Hidden Unicode Free
Where do invisible characters come from?
The most common sources: copying text from websites (CMS editors often insert zero-width spaces), PDFs (especially scanned/OCR documents), Microsoft Word or Google Docs, chat applications like Slack or WhatsApp, code copied from Stack Overflow or Medium, and AI-generated text (some models insert non-standard whitespace). The BOM character often comes from UTF-8 files saved on Windows.
🌐
moreonlinetools.com
moreonlinetools.com › home › text tools › invisible character detector
Invisible Character Detector — Find & Remove Hidden Unicode Free
What are invisible characters?
Invisible characters are Unicode code points that take up space in a string but produce no visible glyph. Common types include: Zero-Width Space (U+200B), Zero-Width Non-Joiner (U+200C), Zero-Width Joiner (U+200D), Byte Order Mark/BOM (U+FEFF), Soft Hyphen (U+00AD), Word Joiner (U+2060), and various other control characters. They commonly appear in text copied from websites, PDFs, Word documents, or chat apps.
🌐
moreonlinetools.com
moreonlinetools.com › home › text tools › invisible character detector
Invisible Character Detector — Find & Remove Hidden Unicode Free
🌐
Soscisurvey
soscisurvey.de › tools › view-chars.php
View non-printable unicode characters
Online tool to display non-printable characters that may be hidden in copy&pasted strings.
🌐
Netus AI
netus.ai › home › blog › how-to-find-hidden-characters-in-text-files
How to Find Hidden Characters in Text Files: A Comprehensive Guide
May 25, 2026 - Tools such as JSFiddle or CodePen allow you to view hidden characters by selecting the relevant options in their settings or preferences. However, the features and functionalities might vary depending on the specific online text editor you choose.
🌐
Invisible Character Viewer
invisiblecharacterviewer.com
Invisible Character Viewer (ㅤ) - Copy & Detect Invisible Text
1Enter or paste your text into the textarea above. 2The app will automatically detect and highlight all invisible characters. 3Highlighted characters will show a special symbol or their Unicode code point. 4Hover over highlighted characters to see their Unicode code point and character name. 5Use the checkbox to toggle the visibility of space characters. This online tool reveals and highlights non-printable characters that may be hidden in copy & pasted text, such as spaces, tabs, line breaks, zero-width, and other control codes.
🌐
Streetdirectory
streetdirectory.com › travel_guide › 148391 › programming › finding_hidden_characters_in_a_file.html
Finding Hidden Characters in a File
Alternatively, you could open a command window, navigate to where the script and files to be processed are located, and type perl hidden.pl at the command prompt
Find elsewhere
🌐
MoreOnlineTools
moreonlinetools.com › home › text tools › invisible character detector
Invisible Character Detector — Find & Remove Hidden Unicode Free
Detect zero-width spaces, BOM marks, soft hyphens and other hidden Unicode characters in your text. See exactly where they are, what type they are, and remove them. Free, no login.
🌐
Invisibletextpro
invisibletextpro.com › invisible-character-viewer
Invisible Character Viewer Online Free Detect Hidden Text
January 2, 2026 - Free invisible character viewer and detector. Find hidden Unicode characters, zero-width spaces, and blank text instantly. Works 2026!
🌐
Reddit
reddit.com › r/sysadmin › hidden character in text file
r/sysadmin on Reddit: Hidden character in text file
April 26, 2016 -

I'm in the process of reverse engineering some of my company's existing scripts, and after dumping the output into OneNote, I get a little boxed "?" in some of the spaces, indicating a special character.

Now...in notepad this character is nowhere to be seen, however, I do get a little phantom character when scrolling through the text

i.e. To get to the end of

... 

I need to scroll over one of the periods twice, as the cursor does not move the first time you press left/right. Now bear in mind, that this is in notepad, so I didn't think I'd see anything weird in the character department.

It might be worth noting that this is a .sed file. The old sys admin guy installed the .exe ports of all the common Unix commands onto all of our Windows servers and is running this as a cron job..on Windows. Please don't ask.

Any insight would be very much appreciated.

UPDATE#

The hidden character is called a File Separator and is a non visible character used for functions rather than text.

Apparently the script it appears in is what's called a pipe separated value to comma separated value script. It's contents are as follows:

/--- ---/d
s/  */ /g
s/,,/,/g
s/^  *//
s/"/'/g
s/.*/"&/
s/$/"/
s/ /","/g
s/"  */"/g
s/  *"/"/g

If you copy the text the FS hidden character should be in there too. After some research, I found that this is pretty common when taking SQL data and transforming it into raw data, as these Reg Exes strip away any odd spaces, take out any SQL formatting, leaving you with raw text.

So, for the sed command:

| sed -f psv2csv.sed > Outputfile.csv

Where we pipe data in from the SQLCMD, grep the pertinent lines and THEN Sed. The -f specifies that a input script is used for the RegEx.

Maybe you'll find it useful!

🌐
InvisibleMsg
invisiblemsg.com › home › invisible character detector
Remove Hidden Characters Online - Invisible Text Copy Paste
Use this invisible character detector to find, view, highlight, remove and replace hidden Unicode characters, zero width spaces, AI hidden characters and non printable text online.
🌐
W3Schools
w3schools.io › editor › notepad++-view-hidden-chars
How do view special hidden characters in notepad++ Text file? - w3schools
December 31, 2023 - It displays all hidden characters in the opened file. Also, there are other options to the Show Symbol menu item. ... Go to View Menu > Select Show Symbol > Uncheck Show End of line. It removes and hides all characters such as CRLF in the opened file.
🌐
Agenticworkers
agenticworkers.com › hidden-character-detector
Hidden Character Detector [Free] - Find Invisible Unicode
Instantly detect and remove hidden characters in your text. Find zero-width spaces, invisible Unicode, and hidden formatting that breaks code. Free, no sign-up.
🌐
Claris Community
community.claris.com › en › s › question › 0D50H00006dsjrESAQ › hidden-characters-in-text-file
Hidden Characters In Text File - Claris Community
Use a good text editor to verify what the extra character is and work from there. Also make sure that you know fully what format and what line-endings the bank expects. ... I just received a confirmation that the use of ASCII-DOS worked. ... An In-Depth Look at “Export Field Contents” | FileMakerHacks https://filemakerhacks.com/2012/09/23/export-field-contents-as-utf-8/
🌐
ZeroUtil
zeroutil.com › home › text tools › invisible character detector
Invisible Character Detector - Find Hidden Characters
May 1, 2026 - Detect and remove invisible characters like zero-width spaces and BOMs. Free online hidden character finder.
🌐
Character Counter
charactercounter.com › invisible-character-detector
Invisible Character Detector - Find Hidden Characters in Text
Use this free invisible character detector to find hidden Unicode characters, zero-width spaces, non-breaking spaces, byte order marks, soft hyphens, and other invisible characters in your text.
🌐
Invisible Characters
invisible-characters.com › view.html
Decode and view invisible, non-printable Unicode characters
This tool let's you decond and view invisible, non-printable Unicode characters hidden inside of a block of text. Just copy and paste your text (which contains invisible, non-printable Unicode characters) into the text box below and click the "View!" button. The tool will then show you the ...
🌐
Experts Exchange
experts-exchange.com › questions › 28702324 › Hidden-characters-in-text-file.html
Solved: Hidden characters in text file | Experts Exchange
August 3, 2015 - I installed Notepad++ and found that there are "CRLF" at the end of each of the entries in the text file. Is there a way to get rid of the "CRLF"? ... that's a Carraige return and line feed. Windows uses this as their "end of line" UNIX uses LF. if you are having issues reading a file with this, it could be becuase you have the wrong EOL setting.