[CentOS] exam txt file

2008-04-17 Thread Hiep Nguyen
hi all, i have centos 5 w/o gui. i can only have access via ssh. i have a text file that contains special (unprintable) characters, what editor i can use to exam what those character are??? i use vi, but i don't know what is ^@ may be an editor that can show ASCII as dec or hex. thanks __

Re: [CentOS] exam txt file

2008-04-17 Thread Luciano Rocha
On Thu, Apr 17, 2008 at 05:56:36AM -0700, Hiep Nguyen wrote: > hi all, i have centos 5 w/o gui. i can only have access via ssh. > > i have a text file that contains special (unprintable) characters, what > editor i can use to exam what those character are??? > > i use vi, but i don't know w

Re: [CentOS] exam txt file

2008-04-17 Thread Hiep Nguyen
yes, corruption indeed, but i want to study why the program writes ^@ to this file. t. hiep On Thu, Apr 17, 2008 at 05:56:36AM -0700, Hiep Nguyen wrote: > hi all, i have centos 5 w/o gui. i can only have access via ssh. > > i have a text file that contains special (unprintable) characters,

Re: [CentOS] exam txt file

2008-04-17 Thread Stephen Harris
On Thu, Apr 17, 2008 at 06:13:40AM -0700, Hiep Nguyen wrote: > yes, corruption indeed, but i want to study why the program writes ^@ to > this file. It's mostly likely not an ASCII file; it's probably UTF16 or similar so there are two bytes for every character, but the high byte is 0x00 which sho

Re: [CentOS] exam txt file

2008-04-17 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen Harris wrote: > It's mostly likely not an ASCII file; it's probably UTF16 or similar > so there are two bytes for every character, but the high byte is 0x00 > which shows as [EMAIL PROTECTED] I've seen strange characters in DOS files before.

Re: [CentOS] exam txt file

2008-04-17 Thread Stephen Harris
On Thu, Apr 17, 2008 at 09:54:45AM -0400, Max Hetrick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Stephen Harris wrote: > > > It's mostly likely not an ASCII file; it's probably UTF16 or similar > > so there are two bytes for every character, but the high byte is 0x00 > > which s

Re: [CentOS] exam txt file

2008-04-17 Thread Hiep Nguyen
On Thu, 17 Apr 2008, Max Hetrick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen Harris wrote: It's mostly likely not an ASCII file; it's probably UTF16 or similar so there are two bytes for every character, but the high byte is 0x00 which shows as [EMAIL PROTECTED] I've seen

Re: [CentOS] exam txt file

2008-04-17 Thread Alan Bartlett
On 17/04/2008, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > > i have a text file that contains special (unprintable) characters, what > editor i can use to exam what those character are??? > i use vi, but i don't know what is ^@ > may be an editor that can show ASCII as dec or hex. How about keeping

Re: [CentOS] exam txt file

2008-04-17 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen Harris wrote: > DOS files typically have ^M characters at the end of each line and > maybe a ^Z at the end of file. This is different to using an alternate > character set. That's right. I couldn't remember what it was, it's been awhile sinc

RE: [CentOS] exam txt file

2008-04-17 Thread Ross S. W. Walker
Hiep Nguyen wrote: > > hi all, i have centos 5 w/o gui. i can only have access via ssh. > > i have a text file that contains special (unprintable) characters, what > editor i can use to exam what those character are??? > > i use vi, but i don't know what is ^@ > > may be an editor that can sh