Unicode and UTF [DRAFT]
Created at 2017-03-22T02:27:55+09:00

Example

"浩志" (Hiroshi) is my first name in Japanese kanji:

$ irb
> "浩志".bytes
=> [230, 181, 169, 229, 191, 151]
> "浩志".bytes.map { |b| b.to_s(2) }
=> ["11100110", "10110101", "10101001", "11100101", "10111111", "10010111"]


[ First unicode ]
1110-0110, 10-110101, 10-101001 ==> 0110110101101001 ==> 0x6d69

[ Second unicode ]
1110-0101, 10-111111, 10-010111 ==> 0101111111010111 ==> 0x5fd7
                                ^^^                  ^^^
                            (decode utf8)          (in hex)

References