Forum Discussion

GaryZ_31658's avatar
GaryZ_31658
Historic F5 Account
Jul 20, 2007

Binary to ASCII Conversion

Has anyone written a binary to ASCII conversion?

 

 

Converting binary to Hex seems to be working fine using binary scan but I would really like to get readable data out of my conversion.

 

 

binary scan [TCP::payload] H* clientdata

 

 

Thanks

3 Replies

  • Try using 'A*' or 'a*' instead of an 'H*' in your format string.

     

     

    Check out the TCL reference page for the binary command at http://tmml.sourceforge.net/doc/tcl/binary.html

     

     

     

    -Al

     

  • Hmmm, I get a 404 when accessing that page (http://tmml.sourceforge.net/doc/tcl/binary.html).

     

     

    On 9.2.5, I get the same result when using 'H*', 'A*', or 'a*'
  • It looks like there is an ongoing issue with the TCL man pages on sourceforge. Here is some info on it: http://sourceforge.net/tracker/index.php?func=detail&aid=1819386&group_id=16386&atid=116386 (Click here)

     

     

    In the meantime, tcl.tk (Click here) or hume.com (Click here) are other options.

     

     

    Aaron