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
character set conversion in unix C gucho High Level Programming 1 03-01-2008 08:27 AM
Convert file from Unix - ANSI to PC - ANSI ssmallya Shell Programming and Scripting 0 02-05-2008 06:07 AM
conversion from Unix to windows kiwi_bloke Shell Programming and Scripting 3 10-10-2005 01:56 PM
Dos to Unix conversion john413 Shell Programming and Scripting 1 09-10-2005 03:13 PM
ANSI C compiler on UNIX elenav UNIX for Dummies Questions & Answers 1 03-14-2005 09:35 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-05-2008
ssmallya ssmallya is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 10
Question File conversion from Unix to ANSI

1. I have a shell script which creates a file using cat command. How can i find what encoding the file follows (e.g. UTF8, ANSI)?

2. I want to convert that file to PC-ANSI format. How can i achieve that?

I tried using the echo $LANG command to find the default encoding. It says parameter not set. Even the locale doesnt show any value set for language.

I am using HP-Unix.
  #2 (permalink)  
Old 02-05-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
HPUX?

So type locale

It will show you what is set...
  #3 (permalink)  
Old 02-05-2008
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
Forgot...
Do a man of:
locale(1), localedef(1M), setlocale(3C), environ(5).
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 05:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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