Sponsored Content
Top Forums Shell Programming and Scripting Working with extended keyboard characters Post 302296264 by joeyg on Tuesday 10th of March 2009 05:20:29 PM
Old 03-10-2009
Question Working with extended keyboard characters

I will be reading a file (file_in) with name & address and a word that I may need to convert. Running unix on a pc, this would be easy. But on my Solaris I am not getting the desired results.

If my file_in contains:
Code:
Joe|Smith|123 Main Street|E|Vehicle
Nicky|Dufour|1 Ste. Catherines|F|Vehicle

and my
conversion file is:
Code:
E|Vehicle|Vehicle
F|Vehicle|Véhicule

and I want to create:
Code:
Joe|Smith|123 Main Street|E|Vehicle
Nicky|Dufour|1 Ste. Catherines|F|Véhicule

which after a whole bunch more programming is ftp'd to my pc network for printing.

I know how to figure this out with awk, etc.. My problem is when I ftp that conversion file to my unix, I end up with wrong characters. In fact, I end up with something like "V\202\hicle" when I vi the file. (Which is correct since the 202 in octal is the e with accent.)
But, this \202 representation garbles during processing and I end up with strange data at the end.

So, I am looking for tricks or hints for my Solaris unix (bash or ksh) to deal with extended characters.
Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Keyboard not working properly...

Hello Again, Those that have noticed my earlier posts will know that I have succesfully installed Solaris 8 onto my pc. I haven't been able to get x-server working (i think it doesn't like my video card) though I've been able to log into root (with a bit of help from unix forums :o ) and have... (2 Replies)
Discussion started by: timresh
2 Replies

2. AIX

keyboard and mouse not working in graphical login

Dear frnz I face a weird issue with p275 workstation with Aix 5.1 After booting the workstation i am getting dt login screen and i am not able to key in user name and passwd .The mouse pointer is moving but the mouse buttons doesnt work. i am able to login through rsh to the machine... (1 Reply)
Discussion started by: sriram.s
1 Replies

3. Shell Programming and Scripting

extended characters in UNIX

Hi Guys, I am using db2 load to load from a csv file to a table. Problem is that extended characters ™,®,é,º do not get loaded correctly. Its a UTF 8 format csv and i am using codepage=1208 for the load. Does anybody have an idea on this? Thanks (2 Replies)
Discussion started by: lifzgud
2 Replies

4. Solaris

Keys on Keyboard stop working

Hello, I hope I put this in the right forum... I searched for similar threads, but I couldn't find any that seem to deal with the problem I am having. My workplace is using (among other Solaris-machines) Dell Dimension T3500 as workstations (running Solaris 10 X86 10/09 u8,... (0 Replies)
Discussion started by: areichart
0 Replies

5. AIX

Keyboard Mouse Display not working with Pseries

Hello, Just got a refurbished Pseries when I boot the machine , everything is okay, that is no attention light and panel shows 01 B N but there is nothing on the display ( monitor / console ) which is plugged into the video card port of pseries. The display is empty.... The keyboard... (3 Replies)
Discussion started by: filosophizer
3 Replies

6. Shell Programming and Scripting

Identify extended ascii characters in a file

Hi, Is there a way to identify the lines in a file having extended ascii characters and display the same? For instance I have a file abc.txt having below data aaa|bbb|111|This is first line aaa|bbb|222|This is secõnd line aaa|bbb|333|This is third line aaa|bbb|444|This is foùrth line... (3 Replies)
Discussion started by: decci_7
3 Replies

7. Shell Programming and Scripting

Search and Replace Extended Ascii Characters

We are getting extended Ascii characters in the input file and my requirement is to search and replace them with a space. I am using the following command LANG=C sed -e 's// /g' It is doing a good job, but in some cases it is replacing the extended characters with two spaces. So my input... (12 Replies)
Discussion started by: ysvsr1
12 Replies

8. Programming

How to read extended ASCII characters from stdin?

Hi, I want to read extended ASCII characters from keyboard using c language on unix/linux. How to read extended characters from keyboard or by copy-paste in terminal irrespective of locale set in the system. I want to read the input characters from keyboard, store it in an array or some local... (3 Replies)
Discussion started by: sanzee007
3 Replies

9. Shell Programming and Scripting

Extended ASCII Characters keep on getting reintroduced to text files

I am working with a log file that I am trying to clean up by removing non-English ASCII characters. I am using Bash via Cygwin on Windows. Before I start I set: export LC_ALL=C I clean it up by removing all non-English ASCII characters with the following command; grep -v $''... (4 Replies)
Discussion started by: lewk
4 Replies
MBK_WORK_LIB(1) 					     MBK ENVIRONMENT VARIABLES						   MBK_WORK_LIB(1)

NAME
MBK_WORK_LIB - define the mbk working directory SYNOPSYS
c-shell running setenv MBK_WORK_LIB unix path ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr DESCRIPTION
MBK_WORK_LIB sets the directory where are saved the results of an invocation of mbk or genlib. This directory is considered to be, from an mbk point of view, read and write. Also, when a file is searched for reading, the first directory to be looked at is the MBK_WORK_LIB, and then the one defined in MBK_CATA_LIB(1). The unix path argument must be a actually accessible path on your host machine. ERRORS
"mbk_fopen : can't open file 'unix_path/file.xx'" This occurs when either the unix path is irrelevent, or when the file doesn't exist if it is open for reading, or when you don't have the right on the file or directory while trying to write it. EXAMPLE
setenv MBK_WORK_LIB ~fred/crechan/uom SEE ALSO
mbk(3), genlib(1), MBK_CATA_LIB(1). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 MBK_WORK_LIB(1)
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy