Posts: 903
plvera
Joined: 11 Oct 2008
#1
Hello:
I'm using vim (and' occasionally gvim; the gui version of vim) in roxterm to type different documents. I'm trying to insert the greek letter 'mu' into my text and I'm having a problem.

Using vim console, I don't even see greek letters as an option under digraphs (which lists all the special characters available). However, using gvim, I can see all the greek letters and can insert them into the text.
Yet if I list the file in a terminal using cat, the greek character does not show up, just a question mark. So, is there a way to list greek letters in roxterm only? I don't need to change my locale.

thanks.

Pedro
Posts: 903
plvera
Joined: 11 Oct 2008
#2
Oddly enough, roxterm won't display a greek character, but rxvt will. I guess I can just switch terminals, although I really preferm roxterm (dont like the transparency of rxvt, and I like the easy cut and paste option in roxterm).
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Is roxterm set to utf-8?

urxvt doesn't have to be transparent. You can change it if you wish.
Posts: 903
plvera
Joined: 11 Oct 2008
#4
Hi anti:
rox-term's setting were all default since I had not messed with them. Under character encoding, UTF-8 did not display 'mu', however, ISO-6689-1 (the other choice available) did. Do I have to set this every time I fire up a rox-term or is there a way to set them globally?

I don't know if this other type of encoding will be a problem with something else.

thanks

Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
I can get Greek characters in roxterm, but that is because I can switch to a Greek keyboard.
To make roxterm change its default
Config manager
Character Encodings
Posts: 903
plvera
Joined: 11 Oct 2008
#6
thanks Anti.

Just to try and understand the difference in behavior, is the default in rxvt ISO-6689-1 then?

Pedro
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7
The default should be utf-8.
What do you have in /etc/default/locale ?
Posts: 903
plvera
Joined: 11 Oct 2008
#8
cat /etc/default locale showed

# File generated by update-locale
LANG=en_US

So, I guess it's not UFT-8?

thanks.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
You could change it to utf8 (I think it is better) by updating the locales and selecting default as LANG=en_US.UTF-8

#dpkg-reconfigure locales
Posts: 903
plvera
Joined: 11 Oct 2008

23 Apr 2009, 13:47 #10

I ran dpkg-configure locales and a WHOLE lot of locales got configured, including en_US-UTF-8. However, this did not fix the problem with roxterm. If I leave it at default (which I would think is UTF-8), I can't see mu, but when I change it to ISO-XXX(whatever) then it does display the character correctly.

I did not reboot after the locale. Dont' know it that would have made a difference.

thanks.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#11
Did /etc/default/locale get changed to
us_EN.UTF-8 ?
Posts: 903
plvera
Joined: 11 Oct 2008
#12
Yes, it did. But rox-term is still not able to display mu. I've tested this several times and changed the configuration using the config manager, or just selecting the character encoding. UTF-8 is just not displaying this character.

thanks.