Re: [AOLSERVER] Q on sp_setparam for binary(32) parameter

2001-06-22 Thread Jim Wilcoxson
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

Re: [AOLSERVER] Q on sp_setparam for binary(32) parameter

2001-06-22 Thread Peter Harper
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