blob: 08a0adb2297b6da4e1bfb64f39c93b91da39ffbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# learning and documenting UTF-8 like a bozo
starting off strongly with da goat, [da wikipedia page](https://en.wikipedia.org/wiki/UTF-8)
it says i can be stupid when needed
> It was designed for backward compatibility with ASCII
which i like, i'm stupid after all
so, first i need to detect unicode points. if <128 then ascii, otherwise unicode
right? right.
ok uh too much thinking, let's write some stupid ass C program that readlines and displays bytes.
yeah, right, i'm rewriting hexdump.
will take 5 minutes, stop complaining and shut the fuck up please
thank u :3 brb
|