![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 |