Re: ASCII hexadecimal number to character?

From: parv (parv__at_yahooWhereElse.com)
Date: 12/16/03

  • Next message: Erik Max Francis: "Re: I'm making zombie processes."
    Date: Tue, 16 Dec 2003 01:49:15 GMT
    
    

    in message <177jrb.d4i.ln@merlin.l6s4x6-4.ca>,
    wrote Lew Pitcher ...

    > parv wrote:
    ...
    >> printf "DEC OCT HEX - CHAR\n"
    >>
    >> for dec in $( jot 256 0 )
    >
    > OK up to this point.
    >
    ><pedantic>

    Indeed.

    > ASCII only contains 128 characters, from codepoint 0 (0x00) to
    > codepoint 127 (0x7f). Your loop will iterate through 256 values,
    > of which only 128 of them represent ASCII characters.

    I had forgotten or paid attention to the fact that ASCII character
    set ends at decimal 127 (starting from 0); thanks much for the
    reminder.

    Then again the only reference to "ASCII" from me was a Google query;
    additionally in "en_US.ISO8859-1" locale here, i get perfectly
    usable characters (at most other higher order locations). Your
    point still stands per the subject of this thread. Mea culpa.

      - parv

    -- 
    In order to reach me, do away w/ WhereElse in the address.
    

  • Next message: Erik Max Francis: "Re: I'm making zombie processes."