Operating System - Linux
1753777 Members
7253 Online
108799 Solutions
New Discussion юеВ

Conversion of french accents in Korn shell.

 
Adnane_1
Occasional Advisor

Conversion of french accents in Korn shell.

Hello Folks,
Did anyone have a function or a script that convert the frecnh accents?

P.S:
I'm using HP UNIX script with awk to create a file.

Thanks
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Conversion of french accents in Korn shell.

The accents (or more properly, the characters with accents) have nothing to do with UNIX and everything to do with the display device (e.g. terminal emulator) and the character set it uses. Generally what is required is a new character set for the terminal, printer, etc. There is a LANG setting for UNIX. Man 5 environ for those details.

If you do want to do a character by character translation then tr will do it quite nicely but the real problem is that
ASCII 65 (Normally "A") will display "A" using 1 character set and something quite different using another character set. To the computer the byte is still simply 65dec or 41hex.
If it ain't broke, I can fix that.
Arunvijai_4
Honored Contributor

Re: Conversion of french accents in Korn shell.

Actually, this is not about conversion, but gives more information about langs in HP-UX

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=754343

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Adnane_1
Occasional Advisor

Re: Conversion of french accents in Korn shell.

Hello Folks,
Just a clarification:
I'm reading a record from an execution of a Stored Procedure, then I'm creating a file in a KORN Shell script. I can't use the tr command because I'm just trying to convert one specific column of my file. Since Im' using AWK to format the file, I'm looking for a function using the sed command to do the conversion.
Did anyone have this function??

Thanks for your help.

Adnane
Adnane_1
Occasional Advisor

Re: Conversion of french accents in Korn shell.

Sorry I meant the sub function not the sed.

Thanks