1. Octal format

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

new topic     » topic index » view message » categorize

2. Re: Octal format

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Octal format

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Octal format

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Octal format

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu