Niki Kovacs
2007-Nov-18 12:36 UTC
[CentOS] Correctly displaying different charsets in Gnome-Terminal
Hi, I'm using CentOS 5.0 with GNOME on almost all my desktops. My system is in french, so the default charset ($LANG) is fr_FR.UTF-8. I'm in charge of our public library database server, running Debian Sarge. It's mainly running a LAMP server with a few extra PHP modules, and it's hosting our library management software. Since the app refuses to work correctly with UTF-8, I set the general system locale on the server to fr_FR at euro (ISO-8859-1). When I administrate that server remotely from, say, a desktop running Slackware (which defaults to ISO, not Unicode), characters in the console get displayed correctly. For example, 'less /root/ChangeLog.txt' will display my ChangeLog file (with french special characters) correctly. But when I open an SSH session on my CentOS machine in a GNOME Terminal, the french special characters are all replaced by inverted question marks. And the same goes for the MySQL monitor: all the french characters in the entries (?, ?, ?, ?, ...) are incorrectly displayed. Q: how can I display all that correctly from within my Gnome Terminal? cheers, Niki Kovacs
Niki Kovacs
2007-Nov-18 14:29 UTC
[CentOS] Correctly displaying different charsets in Gnome-Terminal
Niki Kovacs a ?crit :> Hi, > > I'm using CentOS 5.0 with GNOME on almost all my desktops. My system is > in french, so the default charset ($LANG) is fr_FR.UTF-8. > > I'm in charge of our public library database server, running Debian > Sarge. It's mainly running a LAMP server with a few extra PHP modules, > and it's hosting our library management software. Since the app refuses > to work correctly with UTF-8, I set the general system locale on the > server to fr_FR at euro (ISO-8859-1). > > When I administrate that server remotely from, say, a desktop running > Slackware (which defaults to ISO, not Unicode), characters in the > console get displayed correctly. For example, 'less /root/ChangeLog.txt' > will display my ChangeLog file (with french special characters) > correctly. But when I open an SSH session on my CentOS machine in a > GNOME Terminal, the french special characters are all replaced by > inverted question marks. And the same goes for the MySQL monitor: all > the french characters in the entries (?, ?, ?, ?, ...) are incorrectly > displayed. > > Q: how can I display all that correctly from within my Gnome Terminal? >'s OK, I just found out. I blanked out the menu, and the right-click menu leaves some items out. cheers, Niki