Re: Newbie – Viewing FORTRAN output data on a Windows PC.



David <dzb316@xxxxxxxxxxx> wrote:

2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2031 2E34 32

25 pairs = 1 field

I know that 30=0, 31=1, 32=2, 33=3…
Also 41=A, 42=B, 43=C, etc…
2E = decimal
20 = space

So the above 25 pair field = 1.42

All other pairs (, i.e. 2E, 3F, 79, etc…) get converted into
meaningless symbols, i.e. €?æÃÃ

I need some way to convert this output data to usable ASCII text.

The above stuff *IS* ASCII text. You are just looking at it in hex
instead of in ascii. As you note, the above is a bunch of blanks,
followed by a 1.42 in ASCII. As an aside, the 2E, 3F and 79 that you
mention are a decimal point, a question mark, and a "y".

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: define question
    ... david writes: ... Associates a string of text to a keyboard key. ... the key by its ASCII value in decimal. ...
    (comp.lang.c)
  • Re: OT: Algebra help, please
    ... Nick wrote: ... David, I'm so sorry, I've no idea. ... I'm used to '^' from LaTeX but another ASCII representation is '**'. ... it is the bitwise OR operator. ...
    (uk.media.radio.archers)
  • Re: OT: Algebra help, please
    ... Nick wrote: ... David, I'm so sorry, I've no idea. ... I'm used to '^' from LaTeX but another ASCII representation is '**'. ... it is the bitwise OR operator. ...
    (uk.media.radio.archers)
  • Re: OT: Algebra help, please
    ... the Omrud writes: ... David, I'm so sorry, I've no idea. ... I'm used to '^' from LaTeX but another ASCII representation is '**'. ...
    (uk.media.radio.archers)
  • Re: OT: Algebra help, please
    ... David, I'm so sorry, I've no idea. ... I'm used to '^' from LaTeX but another ASCII representation is '**'. ... '**' is used in some programming languages where a power operator is ... it is the bitwise OR operator. ...
    (uk.media.radio.archers)