diff options
author | Mathias Bynens <mathias@qiwi.be> | 2011-12-27 16:39:21 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2011-12-27 16:39:21 +0100 |
commit | e3c4b0e821b41f5091d12c1fc1b235a9c9c710f4 (patch) | |
tree | 15f76266520849bb8ed5b8b0a0306aa47f51b80a /.bash_profile | |
parent | eab8b0bea255effd7344e722202f8dfe53bf53aa (diff) | |
download | dotfiles-e3c4b0e821b41f5091d12c1fc1b235a9c9c710f4.tar.gz dotfiles-e3c4b0e821b41f5091d12c1fc1b235a9c9c710f4.tar.bz2 dotfiles-e3c4b0e821b41f5091d12c1fc1b235a9c9c710f4.zip |
Add `escape` function which escapes UTF-8 characters into their 3-byte format
Example:
$ escape "♥♡♥"
\xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5
$ echo -e "\xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5"
♥♡♥
Diffstat (limited to '.bash_profile')
0 files changed, 0 insertions, 0 deletions