1. Octal format
- Posted by Mike Sabal <MikeS at NOTATIONS.COM> Oct 08, 1999
- 387 views
I have an attachment that was sent to me via email in MIME application/octa= l-stream. My email program seems to be reading it as straight ASCII text, = which is completely unusable. I need to write a Euphoria program to = convert the ASCII bitstream (after calling int_to_bytes) to an octal = bitstream (after concatenating all the sequences together). My only = dilemna is my poor memory. The octal digit is 3 bits long, isn't it? So = the character 'A' (65 decimal) would be 101 octal, I think. Please = correct me if I'm wrong. Michael J. Sabal
2. Re: Octal format
- Posted by Bernie Ryan <bwryan at PCOM.NET> Oct 08, 1999
- 376 views
On Fri, 8 Oct 1999 13:50:01 -0400, Mike Sabal <MikeS at NOTATIONS.COM> wrote: together). My only dilemna is my poor memory. The octal digit is 3 bits long, isn't it? So the character 'A' (65 decimal) would be 101 octal, I think. Please correct me if I'm wrong. > that value is correct Michael Bernie
3. Re: Octal format
- Posted by Bernie Ryan <bwryan at PCOM.NET> Oct 08, 1999
- 377 views
On Fri, 8 Oct 1999 13:50:01 -0400, Mike Sabal <MikeS at NOTATIONS.COM> wrote: together). My only dilemna is my poor memory. The octal digit is 3 bits long, isn't it? So the character 'A' (65 decimal) would be 101 octal, I think. Please correct me if I'm wrong. > Michael PS A octal number is three octal digits 101 65 decimal in octal bits will be 001 000 001 Bernie
4. Re: Octal format
- Posted by Mike Sabal <MikeS at NOTATIONS.COM> Oct 08, 1999
- 380 views
>>> Bernie Ryan <bwryan at PCOM.NET> 10/08/99 03:03PM >>> >On Fri, 8 Oct 1999 13:50:01 -0400, Mike Sabal ><MikeS at NOTATIONS.COM> = wrote: >together). My only dilemna is my poor memory. The octal digit is >3 = bits >long, isn't it? So the character 'A' (65 decimal) would be 101 >octal, I >think. Please correct me if I'm wrong. > >Michael > PS > A octal number is three octal digits 101 > 65 decimal in octal bits will be 001 000 001 >Bernie That's what I thought I remembered. So if I'm looking purely at a = bitstream, I'll have to merge each 8-bit sequence, then parse it into a = 9-bit sequence to get the correct values, right?
5. Re: Octal format
- Posted by Bernie Ryan <bwryan at PCOM.NET> Oct 08, 1999
- 376 views
All I can suggest is that you try checking manually the first few characters to see if the text makes sense before writing a program. You may find that it is not octal after going to all the trouble of writing a program. Bernie