[clug] A plain text file that isn't, how do I convert it?

Paul Warren paul.warren at anu.edu.au
Fri Oct 31 03:26:20 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks!

I've got a plain old text file, that doesn't seem to be quite so plain...

less shows things like

<97> instead of - (but should be an em dash I beleive)
<93> and <94> instead of "

emacs show's them differently

\222 for -
and

\223 and \224 for "

in Firefox, they appear as you would expect. And in the application on
my PSP which I'm wanting to use, they appear as rectangles.

What I'd like to do is convert all these wierd characters to the
standard, normal, plain old easy to recognise characters, so that it
looks like normal text in less, emacs, and other text viewers.

I thought that these things were UTF-8 characters or similar but iconv
and recode both barf on the ffirst non-normal character when I try to
process them.

So, can anyone tell me just what is going on here? Is it some mismatch
between character encoding and fonts or what, I'm a bit confusede.

Cheers
- --
Paul Warren
Specialist Programmer
ANUSF, Leonard Huxley Building Mills Rd Acton ACT 0200
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkKetgACgkQbf5/PcytO2GM8gCfc/tJy0K8RhOZ3i5dbDLjFOup
wcMAn1ALMEvK3Kq6vfSEc+6+B9B3mGXb
=TlUY
-----END PGP SIGNATURE-----


More information about the linux mailing list