There is no direct way to get hex data into a string in TCL (that I know of).
You could do:
set hexcodes f4e301ab
regsub -all {..} $hexcodes {%\0} hextemp
set hexstring [ns_urldecode $hextemp]
Would work as long as you don't have a zero byte. TCL doesn't handle zero
bytes well in
Surely binary format does exactly this?
I.e.:
% binary format H* 4a4b4c4d
returns:
JKLM
Cheers,
Pete.
On Friday 22 June 2001 14:49, you wrote:
There is no direct way to get hex data into a string in TCL (that I know
of). You could do:
set hexcodes f4e301ab
regsub -all {..} $hexcodes