- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Does this short shell script entry affect French c...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2006 03:17 AM
тАО05-11-2006 03:17 AM
Can someone tell me in words what this does and if it would affect the data from having the correct French accents in the output file created in the script?
====
if [ -t 0 ]
then
stty erase '^h' echoe intr kill '^x'
fi
Solved! Go to Solution.
- Tags:
- stty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2006 03:23 AM
тАО05-11-2006 03:23 AM
SolutionThe appearance of characters displayed is really determined by the current character set of the display device (terminal, terminal emulator, printer). All the computer does is send, for example, decimal 65 encoded (usually) as 8 bits of data, the display device then looks up 65 in a table an outputs, for example, the character 'A'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2006 03:29 AM
тАО05-11-2006 03:29 AM
Re: Does this short shell script entry affect French char display?
I believe A. Clay Stephenson has addressed the UNIX side of the problem. Focus show now turn to the export/reporting side of the 4GL db and the way the data is imported or displayed. If your terminal is not set up correctly, accented characters can cause problems. What is the 4GL? How are you exporting/reporting the data? How is the data displayed ? Are you seeing 'weird' characters?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2006 03:29 AM
тАО05-11-2006 03:29 AM
Re: Does this short shell script entry affect French char display?
If this script is run from cron, and there is a TERM=vt100;export TERM entry in the script too, how is the current character set of the display device determined, since there really is no display device on an automated job?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2006 04:42 AM
тАО05-11-2006 04:42 AM
Re: Does this short shell script entry affect French char display?
This is much easier in the PC world where the CODEPAGE can be selected. In my previous example, where decimal 65 is sent depending upon the CODEPAGE setting 'A','*','}', or whatever might be displayed.
You need to select the character set on your output device because the data in your batchfile will remain constant.
Do a Google search on Unicode and CODEPAGE and you will get a better understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 03:29 AM
тАО05-17-2006 03:29 AM
Re: Does this short shell script entry affect French char display?
http://www.docs.hp.com./en/B2355-60103/locale.1.html
The default locale for cron jobs is "C", as documented in
http://www.docs.hp.com./en/B2355-60103/crontab.1.html
You will need to set the locale environment variables in each cronjob that needs some other locale.
- Tags:
- locale