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 Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To convert multi format file to a readable ascii format gaur.deepti UNIX for Dummies Questions & Answers 5 03-25-2008 03:03 PM
convert/format a file anumkoshy Shell Programming and Scripting 17 10-09-2007 11:16 AM
Convert UTF8 Format file to ANSI format rajreddy UNIX for Advanced & Expert Users 1 05-24-2007 06:40 AM
convert mmddyy date format to ccyyddd format?? Bhups Shell Programming and Scripting 2 09-27-2006 11:30 PM
How to convert file format ? maheshsri Shell Programming and Scripting 3 11-08-2005 12:51 PM

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

Join Date: May 2007
Posts: 5
Convert UTF8 Format file to ANSI format

Hi

i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error

Function i used it as

$ iconv -f UTF8 -t ANSI filename

Error iam getting is NOT Supported UTF8 to ANSI

please some help me out on this.........Let me know are their any functions in unix to convert from UTF8 to ANSI
  #2 (permalink)  
Old 05-24-2007
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
The way that I read the man page, you have to create the conversion file.
  #3 (permalink)  
Old 05-24-2007
rajreddy rajreddy is offline
Registered User
  
 

Join Date: May 2007
Posts: 5
sorry i did not get would u please tell in breif

Thanks
  #4 (permalink)  
Old 05-24-2007
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
You first have to create the conversion table that contains the from:to data.
As with most unix man pages, there's an explanation, but not an example.
  #5 (permalink)  
Old 05-24-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Quote:
Originally Posted by rajreddy
Hi

i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error

Function i used it as

$ iconv -f UTF8 -t ANSI filename

Error iam getting is NOT Supported UTF8 to ANSI

please some help me out on this.........Let me know are their any functions in unix to convert from UTF8 to ANSI

You didnt specify which ANSI format.

check

Code:
iconv -l | grep -i ansi
Varied formats of ANSI would be available, choose that suits your requirement
  #6 (permalink)  
Old 05-24-2007
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
The -l (ell) option doesn't seem to exist in the SCO versions of Unix 5.0.7 or 6.0.0
  #7 (permalink)  
Old 05-24-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
I don't know SCO, but "iconv -l" is POSIX. It lists all of the available conversions on your system. Older systems have a file with a name like config.iconv or iconv.config
that has the same information in it. On HPUX 11.0 the filename is is /usr/lib/nls/iconv/config.iconv.
Sponsored Links
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 10:08 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