diff options
-rw-r--r-- | .functions | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -23,4 +23,10 @@ function digga() { function escape() { printf "\\\x%s" $(printf "$@" | xxd -p -c1 -u) echo # newline +} + +# Decode \x{ABCD}-style Unicode escape sequences +function unidecode() { + perl -e "binmode(STDOUT, ':utf8'); print \"$@\"" + echo # newline }
\ No newline at end of file |