aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 87730656dbcc049abf40f4cc09d7246706434899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
wtf8
====

Tiny utility for interactive use to inspect the octets of UTF-8 strings in line
with the characters. Expects a single argument, a string.

    $ LANG=C.UTF-8
    $ export LANG
    $ make
    $ sudo make install
    $ wtf8 'test'
     74 65 73 74
      t  e  s  t
    $ wtf8 'tøást'
     74 c3-b8 c3-a1 73 74
      t     ø     á  s  t
    $ wtf8 'か'
     e3-81-8b

    $ wtf8 '💦'
     f0-9f-92-a6
               💦

Dependencies
------------

None as far as I can tell apart from libc, but I've only tested it on GNU/Linux
with glibc, and on OpenBSD. Should build with GCC or Clang.

Author
------

Tom Ryder <tom@sanctum.geek.nz>

License
-------

MIT (see LICENSE)