bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Converting control characters to printable symbols


From: Adam Nielsen
Subject: [bug-gnu-libiconv] Converting control characters to printable symbols
Date: Sat, 14 Feb 2009 20:50:47 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.18) Gecko/20081215 Thunderbird/2.0.0.18 Mnenhy/0.7.5.0

Hi all,

I'm working on a binary file viewer, and one thing that bugs me with
pretty much all non-DOS viewers is that none of them can display
control characters (ASCII codes < 32.)

I've found that iconv is great for converting the old US DOS character
set (CP437) to UTF8, but it leaves all the control characters
untouched.  (Which is fair enough, things like newlines and tabs are
probably supposed to stay the same.)

I vaguely recall the glyphs the standard PC video BIOS uses for
control characters being available elsewhere in the Unicode character
set, so if I'm remembering correctly is there any way to map these
control characters to the appropriate glyphs using iconv?

Thanks,
Adam.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]