Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any software that can be used to scrutinize all visible or invisible characters in a text file (characters like BOM, direction mark, line feed ...)?

Showing the Unicode name of characters also is a useful feature.

I want use such app for analyzing text files before parsing parsing them with a programming language.

share|improve this question

closed as off-topic by fixer1234, DavidPostill, Scott, BlueBerry - Vignesh4303, JakeGould Sep 14 '15 at 0:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – fixer1234, DavidPostill, Scott, BlueBerry - Vignesh4303, JakeGould
If this question can be reworded to fit the rules in the help center, please edit the question.

What programming language are you using? – simbabque Nov 3 '12 at 12:43
I use PHP, of course desired app will be used before programming. – PHPst Nov 3 '12 at 12:55
Any good programming editor will have this function. Textpad has both invisible character display and hex display, for example. – Fiasco Labs Sep 6 '15 at 5:07

A good hex editor is probably your best bet. Try FrHed ( if you're on windows or bless ( on linux.

share|improve this answer
You see, Hex editors are about binary files, my concern if about text files – PHPst Nov 3 '12 at 4:50
Hex editors are about ALL files, including text files. Not that many hex editors have Unicode support, though. Any decent programming language will have libraries for handling Unicode charachter data. – kreemoweet Nov 3 '12 at 7:09
@FrHed is unable to open a file if its path or name if not in ASCII. – PHPst Sep 6 '15 at 5:02

The BabelPad editor is great: when you place the cursor after a character, it shows you the Unicode number and the Unicode name. And it has a built-in Unicode information viewer, which shows many Unicode properties for characters. Unfortunately, it processes BOM instead of showing it, and it also interprets line break characters instead of showing them. There might be a way to change this; its documentation is... well, not the best part of it. But it will show invisible controls like LRM and can distinguish between a space and a no-break space etc.

share|improve this answer
@Thanks, BabelPad have a lot of unique features, but yet do not have a feature to make invisible characters visible. – PHPst Nov 3 '12 at 10:54

Maybe this is helpful, though the answer is more fitting to Stack Overflow. I built a small parser in Perl which does what you want. Shame there's no highlighting here.

use strict; use warnings;
use feature qw(say);
use Data::Dumper;
use Unicode::String;
use utf8;

my $line_no = 1;
# Read stuff from the __DATA__ section as if it were a file,
# one line at a time
while (my $line = <DATA>) {
  # Create a Unicode::String object
  my $us = Unicode::String->new($line);

  # Iterate over the length of the string
  for (my $i = 0; $i < $us->length; $i++) {
    # Get the next char
    my $char = $us->substr($i, 1);
    # Output a description, one line per character
    printf "Line %i, column %i, 0x%x '%s' (%s)\n",
      $line_no,         # line number
      $i,               # colum number
      $char->ord,       # the ordinal of the char, in hex
      $char->as_string, # the stringified char (as in the input)
      $char->name;      # the glyph's name
  # increment line number

# Below is the DATA section, which can be used as a file handle
This is some very strange unicode stuff right here:
٩(-̮̮̃-̃)۶ ٩(●̮̮̃•̃)۶ ٩(͡๏̯͡๏)۶ ٩(-̮̮̃•̃).

Let's see what this does:

  • Read from a file handle (the DATA section can be used like that) line by line.
  • Create an object that represents a Unicode string from the line.
  • Iterate the chars in that string
  • Output name, number and stuff about each char

It's really very straightforward. Maybe you can adapt it to php, though I don't know if there's a handy library around for the names.

Hope it helps.

I lifted the smiley thingies here: Which Unicode characters do smilies like ٩(•̮̮̃•̃)۶ consist of?

share|improve this answer

UltraEdit is a multi-platform text editor with Unicode support and a Hex mode that will show you the hex codes for everything side-by-side with the characters they generate. It even has a Hex find/replace dialog (at least on the Mac version, which is what I'm using at the moment). It's a bit pricy, but it does a lot of other stuff as well.

share|improve this answer

I'd recommend Notepad++. If you go under View->Show Symbol and select "Show All Symbols" it will show any invisible characters with it's name. For example, it will show newlines as LF, CRLF, or CR depending on the newline format you're using.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .