Convert File Type - AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Convert File Type - AIX
# 1  
Old 11-18-2011
Convert File Type - AIX

Hi,

I have a file with French characters inside and for some reasons I need to convert it so ASCII format like below :

From
file 1.txt
1.txt: data or International Language text

T
file 1.txt
1.txt: ascii text


Please advise how can I do that in AIX.

TIA

Last edited by Nick1971; 11-18-2011 at 11:34 AM..
# 2  
Old 11-18-2011
What's the character encoding?

Plain ASCII doesn't have things French uses, like é. What should it do for characters that have no translation?
# 3  
Old 11-18-2011
Hi,
The problem here is am not sure the what is the characer encoding. Locale shows :

LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES="en_US"
LC_ALL=

I should be able to use iconv to convert to UTF-8 if i know the source encoding.
# 4  
Old 11-18-2011
Try this:
Code:
export LC_ALL=C.iso88591

# 5  
Old 11-18-2011
this will onle be applied to new file?
# 6  
Old 11-18-2011
And
Code:
export NLS_LANG=french_france.we8iso8859p1

# 7  
Old 11-18-2011
It will affect your environment...
I cant pronounce myself for the rest since I have a to your eyes an exotic keyboard ( Sw-FR ; Swiss-french...)....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX and Value too large to be stored in data type.

root@test8:/config1>oslevel -s 5300-01-00-0000 root@test8:/config1>oslevel -r 5300-01 while moving a file sized 9GB i got this message root@test8:/configapp>mv bkp_14JUN16_oraapp_2.tgz /oraapp bkp_14JUN16_oraapp_2.tgz: Value too large to be stored in data type. possibly need APAR... (2 Replies)
Discussion started by: filosophizer
2 Replies

2. UNIX for Beginners Questions & Answers

Convert Excel File (xls) to tab delimited text file on AIX

Hi i have a problem in my job i try to convert an excel file (xls extention) to text file (tab delimited), but no result with this comand cat xxx.xls > xxx.txt Do you have eny idea? PS: sorry for my english Thanks!! (4 Replies)
Discussion started by: frisso
4 Replies

3. AIX

Finding the type of AIX server using command line

Hi All, I am trying to find out type of AIX servers , for eg : server A is eServer p5 520 , server B is pSeries 630-6C4 etc. Can some one suggest me the best way to retrive this information through command line. is there any direct command or script by which i can retrieve this information... (9 Replies)
Discussion started by: omkar.jadhav
9 Replies

4. AIX

How to install AIX 5.1 on p5 type 9110-51A ?

Hello ALL I have a p510-9110 server with Aix 5.3 installed .. I have many issues related to (oracle 11.5.3 apps) . and oracle said :this OS is not supported with the current apps ..just 5.1 . I tried to install 5.1 on the p510 server , but even no boot from 5.1 cd !!! after goggling... (10 Replies)
Discussion started by: zzmaher
10 Replies

5. AIX

AIX 5.2 installation on 'IBM system p5 type 9110-51A'

Hi All, I am new to AIX, not completly though.. I got a task to install AIX 5.2 on 'IBM system p5 type 9110-51A' server. I tried few things, but i am not able to get to the console of this server to proceed with the installation. I have installed AIX 6.1 earlier, but those servers can be plugged... (4 Replies)
Discussion started by: nd007
4 Replies

6. AIX

how to identify the raid type on aix

hi how to identify the raid type on aix? thx (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

7. AIX

How convert PCL or PDF file to text in AIX

I need to conver a PCL or PDF file to text in AIX, and I donīt know how. (0 Replies)
Discussion started by: 10789
0 Replies

8. AIX

Type national symbols in AIX ?

Hi, What I have done - I installed my national language(package bos.loc.pc.Lt_LT), and selected this language for particular user using LANG env. variable. What should I do next ? I heard something about keymaps, input methods ?? (my language is lithuanian) I'm talking only about command... (0 Replies)
Discussion started by: vilius
0 Replies

9. AIX

Trying to hookup my notebook to my IBM 7046-B50 type rack RS6000/AIX system

Greetings to all: Gentlemen, I've tried extremely hard to hookup my notebook via the hyperterminal to my AIX box (IBM 7046-B50) by virtue of a cross-over cable. Don't know really whats going on ......to my surprise. The notebook says its hookedup successfully but shows no unix login prompt on... (6 Replies)
Discussion started by: mhatmi
6 Replies

10. UNIX for Advanced & Expert Users

terminal type problem with cygwin on aix

hey, I use cygwin to connect to AIX 5.2 but when I open vi I get an error saying: ex: 0602-108 cygwin is not a recognized terminal type how can I fix that? I thought cygwin was tty vt100? (1 Reply)
Discussion started by: rein
1 Replies
Login or Register to Ask a Question