C-Cedilla (Ç), Putty and Linux


 
Thread Tools Search this Thread
Operating Systems Linux C-Cedilla (Ç), Putty and Linux
# 1  
Old 02-11-2009
C-Cedilla (Ç), Putty and Linux

Having just transferred a project from Sun Solaris to Red Hat Linux 5.1 on an HP Blade, we have an issue seeing C-Cedilla (Ç) characters in Putty.

While a 'more' command shows the Ç correctly, cut and paste converts it to ^A and vi converts it to yet another ctrl A character.

The Ç character is a very commonly used separator in our project and it's going to be a major pain to change it everywhere, so is there a simple solution to this?
# 2  
Old 02-11-2009
I'd first check to make sure you're LANG environment variable matches the character set you've configured in Putty.

When logged into RH, do this:

Code:
echo $LANG

It should be set to en_US.UTF-8. If it's not, then you need the following line in your .bash_profile:

Code:
export LANG=en_US.UTF-8

Start a new shell and echo the LANG variable to make sure the changes to your profile worked.

If they did, it's time to make sure Putty is using UTF-8. From the putty config, under Window > Translation make sure the character set translation is also set to UTF-8.

That's usually where I start if Putty isn't working properly with various characters.
# 3  
Old 02-11-2009
Thanks Stanley,

$ echo $LANG
en_US.UTF-8

So that's OK.

The translation we currently use on Sun is

ISO-8859-1:1998 (Latin-1, West Europe)

changing that to UTF8 in putty changes the character but not to a Ç, it's more of a graphics block preceded by ^.

Any other ideas?
# 4  
Old 02-11-2009
Sorted.

Changing the LANG to LANG=en_GB.iso885915 and exporting it in my .profile has done the trick.

Thanks for the reply Stanley, it gave us the lead we needed.
# 5  
Old 02-11-2009
Just to clarify, you are experiencing this problem in Redhat when connecting via SSH through putty, correct?

Try using the ISO-8859-1 character set in Putty and set your LANG to en_US:
Code:
export LANG=en_US

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Cant get responsive terminal when I ssh from Windows to Linux using putty.exe

I ssh from Windows to Linux server and execute a few commands. I have ssh keys setup between them and works fine. The commands get executed on the Linux server however I wish to stay on the Linux terminal that was opened by putty.exe. However, the terminal simply does the job and closes. ... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Shell Programming and Scripting

C cedilla Delimiter interpretation issue

Hi Folks, I am trying to generate a file with the C Cedilla delimiter. I have a file that uses the below DML (In Dev region, the file that i am trying to generate): decimal("Ç") acct_id; and so and so for new columns When I cat this file I get below output:... (3 Replies)
Discussion started by: eap714.com
3 Replies

3. UNIX for Beginners Questions & Answers

Text color in Linux scripts via putty

hi Folks, Can anyone help with changing the color of the words in a linux shell script? I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript. Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies

4. UNIX for Dummies Questions & Answers

On Linux, Putty Log is not WYSIWYG like the screen?

Hi all, I am not sure if this is a known issue. I am using Putty and logging the session into a log, only the printable one. On Solaris, all is working fine. But on Linux servers, Redhat or Suse, while the screen looks correct, the log file is not. Note example below: On the screen,... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. UNIX for Dummies Questions & Answers

Regarding PUTTY

Hello Forum members There is no any time parameter on putty so how can I stay my putty ssh session always Alive? So please reply to my querry. I am looking forward from Forum. Advance Thanks Siva. (5 Replies)
Discussion started by: workforsiva
5 Replies

6. Linux

Help!! trying to connect to linux SSH from windows putty client

Hi, i am trying to connect my Putty session on a windows box to a linux SSH, i have generated private and public key pairs using puttygen, i have set the public one to be in an OPENSSH format... and have put this in my authorized_keys file in linux, when i connect i get the following errors: ... (1 Reply)
Discussion started by: Jtyreman
1 Replies

7. Shell Programming and Scripting

regarding Color scheme in linux console connected through putty.

Hi All, I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help. Also How to enable syntax colouring in... (6 Replies)
Discussion started by: Sooraj_Linux
6 Replies

8. Linux

Opening a GUI from a putty window on Linux

Hi, I have a linux which I am accessing using putty.I have written some code in TCL-Tk & developed a GUI based app.I knew that it is difficult to open a GUI based app. from putty,but there must be some way to do that. If anybody knows any such workarounds kindly let me know. Shell I am using is... (4 Replies)
Discussion started by: forstudy3
4 Replies

9. UNIX for Advanced & Expert Users

Reading putty command line parameters from Linux

I am running Putty 0.60 from Windows XP and I am connecting to a Linux box. I would like to be able to pass a command line parameter to my Linux session so that my Linux session can execute a specific command, depending on the command line parameter. I have looked on the Internet and tried... (1 Reply)
Discussion started by: SFNYC
1 Replies

10. Red Hat

How to take printout of linux file from windows xp using putty?

Friends, I have installed Putty in my windows xp pc. I am connecting the RHEL AS 3 server using putty from my windows xp. My printer is connected to my windows xp. Now, i want to print text.txt of RHEL AS 3.0 in my windows xp printer through putty. For Example: my pc ip is 117.23.2.55... (3 Replies)
Discussion started by: sathyguy
3 Replies
Login or Register to Ask a Question