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


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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2012
Registered User
 
Join Date: Jan 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Filetype conversion error (showing ascii instead of data)

Hi

I have spool file data UTF file containing
Header
data
footer

when there is data my file type is UTF FORMAT. that is typing
file file1.utf
output is data

but when there is no records of data if only shows Header and footer then the flletype is ASCII... why this happen?

Pls help

S
Sponsored Links
    #2  
Old 07-11-2012
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,636
Thanks: 118
Thanked 257 Times in 246 Posts
UTF is not a data type nor a format... its a character set...
If I understand, your file is formatted with a header, data section, footer.
the data inside your data section uses UTF char-set,
When no data present you have no need of UTF... so yes you will see plain ASCII...

Last edited by vbe; 07-11-2012 at 09:07 AM.. Reason: typo
Sponsored Links
    #3  
Old 07-12-2012
Registered User
 
Join Date: Jan 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
THANKS

Thanks for your reply.

S
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ASCII to UTF-8 conversion Sriranga Shell Programming and Scripting 5 12-01-2011 09:06 AM
need help with ascii to decimal conversion sunilmenhdiratt Shell Programming and Scripting 15 08-17-2009 03:33 AM
mount filetype error drmoque Linux 7 09-17-2008 07:03 PM
ascii conversion rintingtong Shell Programming and Scripting 0 04-15-2004 12:18 PM
binary to ascii conversion jimcook42 UNIX for Dummies Questions & Answers 2 10-10-2001 01:29 PM



All times are GMT -4. The time now is 05:24 PM.