Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Irssi and non-latin chars
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Mon Jan 10, 2011 12:34 pm    Post subject: Irssi and non-latin chars Reply with quote

I'll take this in English since it's probably relevant to all the Scandinavian languages.

When I type either of åäö in irssi, I get a bunch of crap characters instead of the typed char.
Googling reveals a number of these problems, but often they relate to running under screen, which I don't. (I use tmux, but the problem is there with or without the multiplexer)

I currently have this in my config
Code:
    recode = "yes";
    recode_out_default_charset = "iso-8859-1";
after blindly trying things recommended on google.
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Mon Jan 10, 2011 1:02 pm    Post subject: Reply with quote

If I run irssi as root, it works, but I have no idea why that is.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Sun Jan 16, 2011 10:57 am    Post subject: Reply with quote

Fungerar för mig med defaultinställningar bara terminalen och fonten har stöd för tecknen. Höll länge emot men använder numera UTF-8 överallt.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Wed Jan 26, 2011 8:35 am    Post subject: Reply with quote

Även om jag förstår att olika teckentabeller kan innehålla olika tecken, är jag faktiskt inte helt säker på vad det innebär att "använda UTF-8 överallt".
Jag har uppdaterat min locale så att för både root och min användare ser det ut så här:
Code:
$ locale
LANG=sv_SE.UTF-8
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE=C
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=

Därefter startar jag om irssi, men det gjorde inte så mycket skillnad. För användaren ser det lika fel ut, och för root blir åäö ??? istället.
Däremot så ser jag fel på åäö i bash nu:
Code:
$ su -
Lösenord:

Att jag inte såg dom tidigare beror väl troligen på att det var engelska förut.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Wed Jan 26, 2011 8:54 pm    Post subject: Reply with quote

Letharion wrote:
Däremot så ser jag fel på åäö i bash nu:
Code:
$ su -
Lösenord:

Att jag inte såg dom tidigare beror väl troligen på att det var engelska förut.

Det här är ett typexempel på UTF-8 tolkat som ISO-8859-1. Således är din locale UTF-8, men din terminal är det inte.

Har du UNICODE="yes" i /etc/rc.conf? Förut behövde man till exempel köra uxterm istället för xterm för att få UTF-8 att fungera. I gnome-terminal kan man ställa in teckenkodningen.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Fri Jan 28, 2011 9:12 am    Post subject: Reply with quote

Testade på en annan dator, och där funkade allt plötsligt. Visade sig att Konsole var instället på UTF-8 på den ena, och ISO-8859-1 på den andra. Tack så mycket för hjälpen :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum