uni2ascii

Converts between UTF-8 and ASCII representations like hex and octal

brewmacoslinux
Try with needOr install directly
Source

About

Bi-directional conversion between UTF-8 and various ASCII flavors

Commands

uni2asciiascii2uni

Examples

Convert UTF-8 text to ASCII hex representation$ uni2ascii -a x < input.txt
Convert hex-encoded ASCII back to UTF-8 text$ ascii2uni -a x < input.hex > output.txt
Convert UTF-8 to octal notation$ uni2ascii -a o myfile.txt