Groovy web console

subscribe to the feed Subscribe
to this
site
IBM01141 message converter (via #groovywebconsole)
tweet this snippet Tweet
this
script

IBM01141 message converter

Published 1 month ago by Anonymous with tags IBM host
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import javax.xml.bind.DatatypeConverter

message = "d1f1f1f8f9f0f1f88260f1f6f6f160f4f5f3816081f0f0f4608382f2f1838285f781f3f4f04040404040404040404040404040f0f2f5f0f0f0f0"
bytes = DatatypeConverter.parseHexBinary(message)

println new String(bytes, "IBM01141")