1834814 Members
2581 Online
110070 Solutions
New Discussion

Danish Locale

 
tony_8
Occasional Contributor

Danish Locale

Can anyone advise on how you can display extended charecters such as umlaut or ? in vi or at the command prompt.

Thanks
3 REPLIES 3
Rainer_1
Honored Contributor

Re: Danish Locale

try changing your terminal port options within your shell.

stty -istrip cs8
CHRIS_ANORUO
Honored Contributor

Re: Danish Locale

Hi,

Do a "man ascii" and check the map of ascii character set.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Alex Glennie
Honored Contributor

Re: Danish Locale

1. make sure that the terminal window has set stty cs8 -istrip -parenb

2. to enter special characters use the alt key and then enter the ascii code
for the special
character on the number keybad (only work with the number keybad). The
keycodes you can
enter are under
http://telecom.tbi.net/asc-ibm.html


"The following chart depicts the Extended ASCII character set that can be used
in the IBM PC environment. These characters occupy DECIMAL numbers 128 through
255. The characters may change slightly depending upon the CODEPAGE used.
Characters reflected herein are dependent upon the US CODEPAGE set.
These characters are typically entered by holding down the ALT key, and typing
the DECIMAL value of the character on the NUMERIC key pad. Some ASCII text
editors allow simple provisions for inserting certain Extended ASCII
characters, particularly the "Line/Box Drawing" characters. Some Word
Processing programs (e.g. WordStar) also incorporate these special characters
for formatting purposes.
In an IBM/Microsoft Windows environment, these characters may not be displayed
properly unless the Print Driver selected can support these characters. Many of
the Epson Print Drivers CAN support these extended characters.

Example:
vi tt
go to insert mode
ALT key 1 key 3 key 3 on the number keypad on the thight side should display
a accent .




PROBLEM:
How to input extended ascii character's (grave, acute, asciicircum,
diaeresis, asciitilde) using the PC as a display.

ANALYSIS/ACTION:
1) Use the korn shell, /usr/bin/ksh2) Use an iso88591 font

3) Verify terminal settings using stty -a. You should see cs8 and
-istrip -parenb. If not type stty cs8 stty -istrip -parenb

4) LANG should be set to an iso locale you are using such as
fr_FR.iso88951 for French.


5) Application must be internationalized.

6) If using X, use eXceed not reflections/X. Reflections/X does allow
group 2 keysyms. Xmodmap can't help. With eXceed verify group 2
keysyms are defined by running xmodmap -pk. The five compose keys are:
alt t usldead_grave/ accent grave
alt r usldead_acute/ acute accent
alt y usldead_asciicircum/ circumflex accent
alt u usldead_diaeresis/ umlaut
alt i usldead_asciitilde/ tilde

7) You can use reflection/1 - telnet and vt220-8 terminal emulation (8
bit) or the PC version of telnet, start-> run-> telnet. To enter
extended characters in this mode hold the alt key while pressing the 3
numbers from the numeric keypad. A table showing the 3 numbers and
corresponding symbols can be found on

http://www.wtlink.com/fcc/tutorial/extendchar.htm or
http://telecom.tbi.net/asc-ibm.html.

Search alta-vista.com for +extended +ascii +character