LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2007, 04:46 PM   #1
user_name
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
LANG help ..


Well.. here is my problem.. When I login on my shell, it displays me the motd and there is something odd, the server is from Canada, and the Admin write the motd using a few french characters and its displaying them like this:

Mod�le Intel(R) Celeron(R) CPU 2.60GHz 1024 RAM 100mbits filtr�e par Gigabits

can this be fixed somehow so that will display the French characters ?

Thanks in advance
 
Old 10-05-2007, 06:01 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
What do you mean by "When I login on my shell"? Presumably you ssh to your remote host... but what terminal emulator do you use - or is it from the Linux text mode virtual terminals?
 
Old 10-06-2007, 05:02 AM   #3
user_name
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I use putty to connect .. but also the root user tells me that he has the same problem .. could it be something with locale ?
 
Old 10-06-2007, 05:52 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The problem looks like the program is outputting accented characters in one character set, but your terminal is set to use a different character set and so you get weird output. The locale settings can include a specific character set request, although applications may or may not support the requested settings.

In Putty's configuration, please check what character set is being used. This can be found under the Window / Translation area in the configuration window. What do you have for the "Character set translation on received data" drop down listbox?

Also, when you enter the command "locale" (after logging in) what output do you get?
 
Old 10-06-2007, 06:01 AM   #5
user_name
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
 
Old 10-06-2007, 06:29 AM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
And what are your putty character set settings, as I described in my previous post?

One more question - the characters which print incorrectly... are they actually in the /etc/motd file? (you can see just by typing "cat /etc/motd")
 
Old 10-06-2007, 06:47 AM   #7
user_name
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
yeah its from /etc/motd .. and I made a mistacke.. I`m using ssh on linux , but is the same when I use putty as well
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the use of lang in <head lang=''> tooparam Programming 2 02-01-2006 05:55 PM
What a good lang. Dark_Sniper* Programming 19 05-21-2005 05:38 AM
LANG settings r_213 Linux - Software 4 01-13-2005 03:26 AM
What lang for What titanium_geek Programming 6 03-28-2003 04:53 PM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration