Characterset conversion problem using iconv command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Characterset conversion problem using iconv command
# 1  
Old 05-08-2012
Network Characterset conversion problem using iconv command

Hi Friends,

I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error.

Below command is working fine

Code:
iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt

But the below command is not working


Code:
iconv -f UTF-8 -t ibm-284 fromfile.txt > tofile.txt


Please help me friends , i am struggling from last one week.

Thanks
Siva.

Moderator's Comments:
Mod Comment edit by bakunin: another two pairs of my wealth of [code] and [/code]-tags given to charity. Please, prevent me from poverty, bring your own tags to the party

Last edited by bakunin; 05-08-2012 at 11:53 AM..
# 2  
Old 05-08-2012
What's your system? Try iconv -l to see if it lists the character sets you want under different names.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 05-09-2012
It is AIX 1

---------- Post updated at 10:08 AM ---------- Previous update was at 10:04 AM ----------

I have listed, i am not able to find IBM-284 character set ,Could you please let me know the process to install this character set and from where i can download this package ?

Thanks,
Siva

---------- Post updated 05-09-12 at 01:18 AM ---------- Previous update was 05-08-12 at 10:08 AM ----------

Hi Corona,

I have found the IBM-284 characterset while listing the character sets using iconv -l. Still i am getting the same error. Could you please let me know what is the root cause about this issue.

Thanks in Advance,
Siva.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Explain iconv command

I have a requirement to remove all non-ascii characters from a fixed length file. I used the below command which is removing special characters but somehow the total record length is being truncated to one space less. If it is a multi-byte string then many characters at the end are being truncated.... (8 Replies)
Discussion started by: eskay
8 Replies

2. AIX

Iconv: conversion IBM-852 to UTF8 : which filesets to be installed ?

Hello. We have to make conversion from ibm-852 to UTF-8 (using iconv). We already installed bos.iconv.iso2, but I suppose another fileset is missing : # echo toto | iconv -f UTF-8 -t IBM-852 iconv: 0791-004 cannot open converter I know I can make this conversion from IBM-852 to UTF-8... (2 Replies)
Discussion started by: stephnane
2 Replies

3. Shell Programming and Scripting

File conversion problem

To convert file epcdic to ascill format,i am using below code.Getting some junk characters in output file.not sure what the issue is.Please correct if below command is wrong. DD conv=ascii if=filename of =output_filename. (2 Replies)
Discussion started by: srivalli
2 Replies

4. Shell Programming and Scripting

Help with command iconv

I need to convert a utf16 file to utf8. When i use the iconv command to do so it gives an error saying invalid function. When I ran the iconv -l function it did not list the utf16 and utf8 as part of its internal table. Is there anyway I can add these encodings in the library? Is there any other... (3 Replies)
Discussion started by: gaun
3 Replies

5. AIX

Installing Converter files for iconv conversion

Hi Friends, I need to install two converter packages UTF-8_IBM-284 and UTF-8_IBM-500 in the location /usr/lib/nls/loc/iconv/* or /usr/lib/nls/loc/iconvTable/* . Could you please let me know how to get this converter files. Thanks in Advance, Siva. (1 Reply)
Discussion started by: sivakumarl
1 Replies

6. UNIX for Dummies Questions & Answers

Help with iconv command

Hi , I am using iconv command to convert a file in UTF-16 format to UTF-8 format. This command will work for few files but for some showing an error as bad input character. But if i copy the contents of the file for which it is showing "bad input character" to a new file and perform the... (2 Replies)
Discussion started by: Shruthi8818
2 Replies

7. Shell Programming and Scripting

Help with iconv command

Hi , I am using iconv command to convert a file in UTF-16 format to UTF-8 format. This command will work for few files but for some showing an error as bad input character. But if i copy the contents of the file for which it is showing "bad input character" to a new file and perform the... (0 Replies)
Discussion started by: Shruthi8818
0 Replies

8. Shell Programming and Scripting

decimal value for particular characterset

Hi, I need some help to get decimal value of some particluar character set for e.g. in windows-1251 characterset ж --> 230 Please help and suggest way to achive same. (7 Replies)
Discussion started by: peeyushgehlot
7 Replies

9. UNIX for Dummies Questions & Answers

Conversion Problem

hi, i am reading a string values from a file.the values are 2000 20000 300 10 5000 now retrieving each value one by one and printing if they are greater than 1000. i use this statement for the same (in perl script) if ($_ gt 1000){ print $_ } but its now prininting all... (3 Replies)
Discussion started by: vivekshankar
3 Replies
Login or Register to Ask a Question