<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I input German characters from telnet/ssh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554258#M370917</link>
    <description>hi MK,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;I checked the output of "stty -a". it says istrip without minus. And it did convert character "a-with-dots" to "d" and the "o-with-dots" character to "v".&lt;BR /&gt;# stty -a&lt;BR /&gt;speed 38400 baud; line = 0;&lt;BR /&gt;rows = 24; columns = 80&lt;BR /&gt;min = 1; time = 0;&lt;BR /&gt;intr = ^C; quit = ^\; erase = ^H; kill = ^U&lt;BR /&gt;eof = ^D; eol = ^@; eol2 &lt;UNDEF&gt;; swtch &lt;UNDEF&gt;&lt;BR /&gt;stop = ^S; start = ^Q; susp &lt;UNDEF&gt;; dsusp &lt;UNDEF&gt;&lt;BR /&gt;werase &lt;UNDEF&gt;; lnext &lt;UNDEF&gt;&lt;BR /&gt;-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts&lt;BR /&gt;-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc&lt;BR /&gt;ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak&lt;BR /&gt;isig icanon -iexten -xcase echo echoe echok -echonl -noflsh&lt;BR /&gt;-echoctl -echoprt -echoke -flusho -pendin&lt;BR /&gt;opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3&lt;BR /&gt;&lt;BR /&gt;What I did:&lt;BR /&gt;#stty -istrip&lt;BR /&gt;After that, if I input o-with-dots it is displayed as "^Ã¶". So do copy and paste. However, the system accepts it as Ã¶.&lt;BR /&gt;Do you have any advice for this?&lt;BR /&gt;&lt;BR /&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;</description>
    <pubDate>Wed, 23 Dec 2009 00:02:43 GMT</pubDate>
    <dc:creator>Carrie Yi</dc:creator>
    <dc:date>2009-12-23T00:02:43Z</dc:date>
    <item>
      <title>How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554256#M370915</link>
      <description>I have set the locale by doing the following steps:&lt;BR /&gt;1. edit /etc/rc.config.d/LANG, &lt;BR /&gt;   LANG=de_DE.iso88591;export LANG&lt;BR /&gt;2. edit /etc/profile&lt;BR /&gt;   LANG=de_DE.iso88591;export LANG&lt;BR /&gt;3. reboot&lt;BR /&gt;Then I tried to connect this box from a German Windows with putty.exe. All German characters (in file/output)are displayed well. But I couldn't input any German specific characters. All the accented characters are converted to garbage chars.&lt;BR /&gt;I have set "character set translation on received data" to "ISO-8859-1:1998 (Latin-1, West Europe)" for the putty utility.&lt;BR /&gt;How could I input German characters properly?</description>
      <pubDate>Tue, 22 Dec 2009 16:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554256#M370915</guid>
      <dc:creator>Carrie Yi</dc:creator>
      <dc:date>2009-12-22T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554257#M370916</link>
      <description>I know at least two possible causes for such a problem. &lt;BR /&gt;&lt;BR /&gt;Does it happen in the shell prompt only, or in applications too? In other words, if you start an editor (like vi for example), can you use accented characters when editing the file?&lt;BR /&gt;&lt;BR /&gt;One possible cause would be incorrect stty settings: use the "stty -a" command to check the settings.&lt;BR /&gt;The 8-bit character mode should be selected, and the 8th bit stripping option should be disabled, i.e. the "stty -a" listing should include the tokens "cs8" and "-istrip".&lt;BR /&gt; &lt;BR /&gt;If it says "istrip" without the minus sign, the tty driver is stripping the 8th bit from any accented characters you type, changing the ISO-8859-1 character "a-with-dots" to "d" and the "o-with-dots" character to "v".&lt;BR /&gt;Due to the structure of the ISO-8859-1 character set, this change happens the same way in both upper and lower cases.&lt;BR /&gt;&lt;BR /&gt;The other possible cause is somewhat shell-specific. Which shell are you using?&lt;BR /&gt;&lt;BR /&gt;The HP-UX default shell, /usr/bin/sh, obeys the standard locale environment variables like LANG... but there is a trick: the locale variable(s) must be set up _before_ the shell starts. &lt;BR /&gt;&lt;BR /&gt;If the variables are initialized in /etc/profile or whatever, it will work just fine in applications, but at that time the shell has already initialized its own locale settings. You'll need a way to set the variable *before* the shell starts up.&lt;BR /&gt;&lt;BR /&gt;Normally the variables set in /etc/rc.config.d/LANG would be inherited by the system daemons, and ultimately the login sessions too... but sshd tries to be safe and resets the environment variable space to very minimalistic default values before initializing the user session. Good-bye LANG.&lt;BR /&gt;&lt;BR /&gt;If you use SSH to log in, there is a way:&lt;BR /&gt;&lt;BR /&gt;1.) Make sure that the server's /opt/ssh/etc/sshd_config file has the option PermitUserEnvironment enabled. (I think that's the default in HP Secure Shell).&lt;BR /&gt;&lt;BR /&gt;2.) Create the ~/.ssh sub-directory to your home directory, if it does not already exist.&lt;BR /&gt;&lt;BR /&gt;3.) Create the file ~/.ssh/environment, and put in the necessary locale environment variable setting(s), e.g.:&lt;BR /&gt;&lt;BR /&gt;LANG=de_DE.iso88591&lt;BR /&gt;&lt;BR /&gt;The export command is not needed here: all the variables defined in this file will automatically be exported to the SSH session by the sshd process, _before it starts the shell for the SSH session_.&lt;BR /&gt;&lt;BR /&gt;(The ~/.ssh/environment file is _not_ interpreted as a shell script: it is simply a list of desired environment variables and their values.)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 22 Dec 2009 16:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554257#M370916</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-12-22T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554258#M370917</link>
      <description>hi MK,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;I checked the output of "stty -a". it says istrip without minus. And it did convert character "a-with-dots" to "d" and the "o-with-dots" character to "v".&lt;BR /&gt;# stty -a&lt;BR /&gt;speed 38400 baud; line = 0;&lt;BR /&gt;rows = 24; columns = 80&lt;BR /&gt;min = 1; time = 0;&lt;BR /&gt;intr = ^C; quit = ^\; erase = ^H; kill = ^U&lt;BR /&gt;eof = ^D; eol = ^@; eol2 &lt;UNDEF&gt;; swtch &lt;UNDEF&gt;&lt;BR /&gt;stop = ^S; start = ^Q; susp &lt;UNDEF&gt;; dsusp &lt;UNDEF&gt;&lt;BR /&gt;werase &lt;UNDEF&gt;; lnext &lt;UNDEF&gt;&lt;BR /&gt;-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts&lt;BR /&gt;-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc&lt;BR /&gt;ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak&lt;BR /&gt;isig icanon -iexten -xcase echo echoe echok -echonl -noflsh&lt;BR /&gt;-echoctl -echoprt -echoke -flusho -pendin&lt;BR /&gt;opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3&lt;BR /&gt;&lt;BR /&gt;What I did:&lt;BR /&gt;#stty -istrip&lt;BR /&gt;After that, if I input o-with-dots it is displayed as "^Ã¶". So do copy and paste. However, the system accepts it as Ã¶.&lt;BR /&gt;Do you have any advice for this?&lt;BR /&gt;&lt;BR /&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;&lt;/UNDEF&gt;</description>
      <pubDate>Wed, 23 Dec 2009 00:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554258#M370917</guid>
      <dc:creator>Carrie Yi</dc:creator>
      <dc:date>2009-12-23T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554259#M370918</link>
      <description>sorry, the last paragragh is:&lt;BR /&gt;&lt;BR /&gt;What I did:&lt;BR /&gt;#stty -istrip&lt;BR /&gt;After that, if I input o-with-dots it is displayed as "^o-with-dots"(with ^ ahead). So do copy and paste. However, the system accepts it as o-with-dots(without ^).&lt;BR /&gt;Do you have any advice for this?</description>
      <pubDate>Wed, 23 Dec 2009 00:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554259#M370918</guid>
      <dc:creator>Carrie Yi</dc:creator>
      <dc:date>2009-12-23T00:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554260#M370919</link>
      <description>OK, so that was a step in the correct direction, but not a complete solution yet.&lt;BR /&gt;&lt;BR /&gt;You might actually have had a combination of the two problems I listed originally. &lt;BR /&gt;&lt;BR /&gt;"stty -istrip" fixed the first part of the problem: it made the TTY driver stop forcing the 8th bits of all incoming characters to zero. &lt;BR /&gt;&lt;BR /&gt;You might want to add the "stty -istrip" command to /etc/profile and /etc/csh.cshrc, so that it'll be automatically executed for all users. Unless you have ancient 7-bit-only terminals connected to your system, this setting should not harm any of your users.&lt;BR /&gt;&lt;BR /&gt;Now it seems that the something (maybe the shell?) still regards the characters with 8th bit set as strange control codes, and not regular ISO-8859-1 printable characters.&lt;BR /&gt;&lt;BR /&gt;But if you have the LANG variable properly set in /etc/profile, anything except your initial login shell should handle accented characters just fine. In fact, even the shell should accept the accented characters if you start a second shell within your session: i.e. simply enter the command&lt;BR /&gt;&lt;BR /&gt;sh&lt;BR /&gt;&lt;BR /&gt;to enter a "shell-within-a-shell". The inner shell had the LANG already set up as it started, so it should have no problems with accented characters. Type "exit" to return to your regular session, and the problem with accented characters should re-appear. If your system behaves like this, implement the ~/.ssh/environment trick I described in my first response.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 23 Dec 2009 11:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554260#M370919</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-12-23T11:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I input German characters from telnet/ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554261#M370920</link>
      <description>hi MK,&lt;BR /&gt;It is solved after change sh to csh. Thank you very much.&lt;BR /&gt;Carrie.</description>
      <pubDate>Thu, 24 Dec 2009 05:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-input-german-characters-from-telnet-ssh/m-p/4554261#M370920</guid>
      <dc:creator>Carrie Yi</dc:creator>
      <dc:date>2009-12-24T05:45:19Z</dc:date>
    </item>
  </channel>
</rss>

