diff options
Diffstat (limited to 'src/wasp-utils.el')
| -rw-r--r-- | src/wasp-utils.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasp-utils.el b/src/wasp-utils.el index 8bac37ae..93ed6f77 100644 --- a/src/wasp-utils.el +++ b/src/wasp-utils.el @@ -82,6 +82,10 @@ Optionally append EXT to the path." "Given MSG, extract a user pinged." (cadr (s-match (rx "@" (group (one-or-more (any alnum "_")))) msg))) +(defun w/utf8 (s) + "Decode the unibyte string S as UTF-8." + (decode-coding-string s 'utf-8)) + (defun w/decode-string (s) "Decode the base64 UTF-8 string S." (decode-coding-string (base64-decode-string s) 'utf-8)) |
