The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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.
Reply With Quote
Forum Sponsor