Bryan wrote:
Basically, im getting strange characters in some applications when I try to
type a uk pound symbol. I can type it at the command line okay, but trying
it in 'vi' or 'nano' produces strange characters.
Typically display problems are caused by the terminal emulator using a
different character set to the character set that the shell and other
applications believe they are using. This seems to happen most often
with people using terminal emulators on windows which default to
iso-8859-1 (or something close to that) but it can happen on anything.
The information you've given eliminates some of the possibilities, but
there's not enough to be definitive. If you run "locale" on the systems
do you see lots of "en_GB.UTF8" or "en_US.UTF8" stuff -- you should do,
that's the default (and it's what I would expect; you might want to run
system-config-language on the RHEL5 box). If you don't then I suspect
a rogue .bash_profile or similar is messing with you. Have you also
check the rc files for vim and nano?
Next, type echo -e '\xc2\xa3' that's UTF-8 for a sterling symbol.
If it's not then typically is capital-a-circumflex and a sterling symbol
because that's what those characters are if you're talking ISO-8859-1
(or similar).
Finally create a new file with vim/nano and put a single sterling symbol
in it and save it to a file. "od -tx1" on that file should show
0000000 c2 a3 0a
0000003
which, again, is UTF-8 for the sterling symbol. If the file does
contain that and it displays OK when you cat it, then vi/nano are
messing you about. If the file contains something else it'll be
interesting to know what because the terminal emulator is messing you about.
Personally, I suspect that someone has been messing with the rc files
for vi and nano -- on my machine, the first three lines of /etc/vimrc
have stuff to do with UTF8 and /etc/nanorc doesn't exist.
Hope that gives you something to go on.
jch
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list