The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 09:25 AM
Why generate "ash and bash" different output for same bash script? s. murat Shell Programming and Scripting 0 05-26-2008 04:19 AM
Problem with including foreign characters in Lex rule Nathalie1 High Level Programming 1 01-31-2008 08:45 AM
How to get rid of all the weird characters and color on bash shell Micz UNIX for Dummies Questions & Answers 1 10-07-2005 12:58 PM
"foreign" NIC on Sun Box CancerMan UNIX for Advanced & Expert Users 4 10-24-2002 07:44 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2001
Registered User
 

Join Date: Dec 2001
Location: Barcelona
Posts: 3
Foreign characters in bash

Hello,

I'm trying to type in foreign characters (á, é, í, ñ...) from the bash when doing a Telnet to my UNIX account.

So far it only allows me to type in the standard character set (up to ASCII 128). I need this to feed parameters to certains scripts and programs.

Thanks!

Miguel
Forum Sponsor
  #2  
Old 12-03-2001
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Try using the "-8" option to telnet if your version supports it. Alternately give telnet the "toggle binary" command to enable 8-bit transport.

i.e.:


$ telnet
telnet> toggle binary
Negotiating binary mode with remote host.
telnet> open yourserver.com
Trying...
Connected to yourserver.com
Escape character is '^]'.
...
  #3  
Old 12-03-2001
Registered User
 

Join Date: Dec 2001
Location: Barcelona
Posts: 3
Hello PxT,

thanks for your quick reply.

I forgot to tell you that I'm not telnetting from another UNIX machine, but from a Windows system. As far as I know Windows' Telnet does not have these switches (I have to use a Telnet program with SSH anyway, because my host refuses insecure Telnet connections.

Miguel
  #4  
Old 12-03-2001
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
What type of system are you connecting to? Some machines use tty/pty's that are not 8-bit clean.

Try issuing: stty -parenb -istrip cs8

to see if that helps.
  #5  
Old 12-04-2001
Registered User
 

Join Date: Dec 2001
Location: Barcelona
Posts: 3
Hello and thanks again. I'm learning new things about Unix and that's great.

This is the log of my Telnet session:

bash$ stty -parenb -istrip cs8
==> Here I tried to type in "Camarón". It didn't work
bash$ Camarn

This is what "stty" gives. Don't whether this is useful for you:

bash$ stty
speed 9600 baud; -parity
rows = 24; columns = 80; ypixels = 0; xpixels = 0;
swtch = <undef>;
brkint -inpck -istrip icrnl -ixany imaxbel onlcr tab3
echo echoe echok echoctl echoke iexten
bash$


Miguel
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0