#character-encoding #utf-8 #unicode #encoding

app enc-check

A tool to inspect utf-8 and utf-16 character encodings

3 unstable releases

new 0.2.1 Jan 5, 2025
0.1.1 Oct 11, 2023
0.1.0 Oct 7, 2023

#862 in Text processing

Download history 1/week @ 2024-09-17 8/week @ 2024-09-24 1/week @ 2024-12-03 9/week @ 2024-12-10 71/week @ 2024-12-31

81 downloads per month

GPL-3.0-only

19KB
176 lines

enc-check

Installation

cargo install enc-check

Usage

Inspect character encodings.

$ enc-check --help

CLI Tool to inspect utf-8 and utf-16 strings

Positional Arguments:
  name              the string to inspect

Options:
  -6, --utf16       use utf-16 encoding instead of utf-8
  -j, --json        output as json instead of table
  --help, help      display usage information
enc-check asdᚢ𐌰

┌───────┬───────┬───────────┬──────┬─────┬─────┬──────────┐
│ U+dec │ U+hex │ character │ byte │ hex │ dec │ bin      │
├───────┼───────┼───────────┼──────┼─────┼─────┼──────────┤
│ 9761    │ a         │ 0619701100001 │
│ 11573    │ s         │ 17311501110011 │
│ 10064    │ d         │ 26410001100100 │
│ 5794  │ 16a2  │ ᚢ         │ 3    │ e1  │ 22511100001 │
│       │       │           │ 4    │ 9a  │ 15410011010 │
│       │       │           │ 5    │ a2  │ 16210100010 │
│ 6635210330 │ 𐌰         │ 6    │ f0  │ 24011110000 │
│       │       │           │ 79014410010000 │
│       │       │           │ 8    │ 8c  │ 14010001100 │
│       │       │           │ 9    │ b0  │ 17610110000 │
└───────┴───────┴───────────┴──────┴─────┴─────┴──────────┘

Learn

  • Summary of how encodings work is at learn/slides.md. Run it using maaslalani/slides.

Dependencies

~5.5MB
~78K SLoC