On 2014-08-08, at 10:38, Grinsell, Don wrote:

> Take a look at the -F (uppercase) flag.  It's supposed to get the info from 
> the file, but I've not actually verified that it does so.
>  
Yup.  Works:

user@HOST: ls -T tinyAA.file                                                    
               
m ISO8859-1   T=off tinyAA.file
user@HOST:                                                                      
               
user@HOST: iconv -f ISO8859-1 -t IBM-1047 tinyAA.file                           
               
Hello, world! 4
user@HOST: 
user@HOST: iconv -F           -t IBM-1047 tinyAA.file                           
               
Hello, world! 4

Of course, since iconv writes only to stdout, there's no complementary
option to set the tag of the output file.

Thanks,
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to