From: Joel VanderWerf Date: 2008-09-07T13:42:34+09:00 Subject: Re: how to change ASCI to Hex Zqd Zqd wrote: > hi everyone: > I want to change ASCI to Hex,which i receive in the UDPSocket,but it > just report error > > 1) my code is: > server = UDPSocket.open > server.bind('192.168.203.108', $port) > s= server.recvfrom(164) I think this is what you're asking for: s.unpack("C")[0] -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407