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 01:25 PM
Why generate "ash and bash" different output for same bash script? s. murat Shell Programming and Scripting 0 05-26-2008 08:19 AM
Problem with including foreign characters in Lex rule Nathalie1 High Level Programming 1 01-31-2008 11: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 04:58 PM
"foreign" NIC on Sun Box CancerMan UNIX for Advanced & Expert Users 4 10-24-2002 11:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-03-2001
czerny czerny is offline
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
  #2 (permalink)  
Old 12-03-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
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 (permalink)  
Old 12-03-2001
czerny czerny is offline
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 (permalink)  
Old 12-03-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
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 (permalink)  
Old 12-04-2001
czerny czerny is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0