Bembel-B Blog


Display DOS ASCII Arts (e.g. NFO Files) on Linux

Filed under: ASCII,ASCII Arts,codepages,DIZ,iconv,Linux,NFO,software,UTF-8 — FrankZabbath @ 19:14

In order to properly display NFO files, their content has to be converted to your local codepage.
In my case that is UTF-8. The conversion will be done with iconv. To get the solid block characters I chose the input codepage IBM 437. some ascii arts snippet from xterm
So the resulting command is:

iconv -f 437 -t UTF8 dafile.nfo | less

For a list of available formats type:

iconv --list

It is handy to have this command as a script. That would be something like this:

# Display DOS ASCII Arts (e.g. NFO Files)

if [ -z "$@" ]
  echo "No filename given."
  echo "Usage: `basename $0` filename(s) [filename(s)]..."
  iconv -f 437 -t UTF8 "$@" | less

exit 0

You can download this script from my share.

Click on the screenshot to view a larger version.


[2006-04-23: Add tags.]
[2007-05-23: Download link.]



  1. Sweet. I’ve been looking for a newbie friendly guide for how to do this for ages.

    Thank you.

    Comment by ben — 2006/08/24 @ 00:35 | Reply

  2. Exactly what I was looking for! Thanks!!

    Comment by Fredrik — 2007/03/14 @ 00:18 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: