Erlang/OTP Forums

Author Message

<  Erlang  ~  hex string to char

px0nc
Posted: Mon Jan 17, 2011 5:26 pm Reply with quote
Joined: 17 Jan 2011 Posts: 1
I'm new to erlang and having some problems converting a hex string such as "616263" to "abc" and back again (where 61 is the hex value of the ascii value of "a", etc).
View user's profile Send private message
zajda
Posted: Sun Jan 23, 2011 3:35 am Reply with quote
User Joined: 22 Aug 2009 Posts: 83
take a look at this example:
Code:
3> [16#61, 16#62, 16#63].
"abc"
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum