The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Conversion from EBCDIC to HEX Indalecio UNIX for Dummies Questions & Answers 1 02-06-2009 07:34 AM
ascii to ebcdic conversion er_ashu Shell Programming and Scripting 1 02-01-2008 05:43 PM
Dos to Unix conversion john413 Shell Programming and Scripting 1 09-10-2005 03:13 PM
Unix to EBCDIC conversion Bab00shka UNIX for Dummies Questions & Answers 2 01-20-2005 12:58 PM
unix to windows conversion misc19432043 Filesystems, Disks and Memory 2 10-11-2002 02:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2009
sridhar_423 sridhar_423 is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 12
UTF-8 to EBCDIC conversion in UNIX

Hi all,

At present a file from AS400 system is being FTPed to an AIX system.
Now, a similar file needs to be sent from our Unix box (Solaris)

Is there any tool available which does the conversion in Unix from UTF-8 to EBCDIC?

Any suggestions/ pointers are really appreciated.

Thanks,
Sridhar
  #2 (permalink)  
Old 04-06-2009
stevexyz stevexyz is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
Do you have iconv installed?
  #3 (permalink)  
Old 04-06-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
Under Linux, my man pages suggest that your task can be achieved with :
Code:
iconv --from-code=UTF-8 --to-code=EBCDIC --output=FILE SourceFile
. If you have iconv, just check the man pages.
  #4 (permalink)  
Old 04-12-2009
sridhar_423 sridhar_423 is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 12
Hi,

iconv is there on our server. But it always gives the same message "From" charset to "To" charset conversion is not supported.
iconv -f 1256 -t 420 file > outFile

Did I miss anything here?

Thanks,
Sridhar
  #5 (permalink)  
Old 04-13-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,923
I suspect your syntax is wrong. First list the supported charsets using iconv --list to check if the required charset is supported on your system.

Assuming you want to convert from UTF8 to US EBCDIC, on a Fedora 10 system the syntax is
Code:
iconv -f UTF8 -t EBCDIC-US file > outfile
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0