I use these:
alias ascttochr {
bset &chr 1 $1-
echo $color(info) -s * /asctochr: $bvar(&chr,1-).text
}
alias chrttoasc {
bset -t &chr 1 $1-
echo $color(info) -s * /chrtoasc: $bvar(&chr,1-)
}
Example:
Input: /chrtoasc hello world
Output: * /chrtoasc: 104 101 108 108 111 32 119 111 114 108 100
Input: /asctochr 104 101 108 108 111 32 119 111 114 108 100
Output: * /asctochr: hello world