Click to See Complete Forum and Search --> : Change of encoding in console.


phiber
01-11-2004, 08:58 PM
I am using Fedora Core 1, and it seems like the console is using unicode as the default character encoding, when I think it would be better off using some kind of Western Latin.

When I use Swedish/Scandinavian characters like "å", "ä" and "ö" in the console or in an XTerm/Konsole they look correct in some programs, like irssi, but the characters that are actually sent arrives unreadable to the receiver(s). In other programs I just see "�[37;6H" for "å", "�[37;16H" for "ä" and "�[37;6H" for "ö".

Is the reason for this the encoding, and if so; what can I do about it?

GaryJones32
01-12-2004, 01:37 AM
this general info might help even though i don't "actually"
have the answer :)

yea i do think the screen by default is using UTF-8
can turn that on and off with
unicode_stop
unicode_start

the non-unicode mode is a byte mode that uses charsets
it can either be unicode mapping or direct-to-font
i think there are four charsets built into the kernel
ISO latin1 charset
the DEC VT100 charset
and the IBM codepage 437
the 4th is user- definable with -m option of setfont

the console driver has two slots for charmapping tables G0 and G1
see
man mapscrn
can use escape sequences to switch between them
this is more commonly done now with
setfont
see
man setfont

---------------------
yes that sounds like encoding troubles in your apps
have to sort of take them one at a time and figure it out
they tell me irssi supports utf-8 properly now so two updated version
should be working
have also seen irssi charconv module
perhaps this is stable now and can help out