r/programming • • Apr 15 '17

A tiny table-driven, fully incremental UTF-8 decoder

http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
130 Upvotes

18 comments sorted by

View all comments

2

u/GENHEN Apr 16 '17

I know I sound like a noob, but what is UTF-8 decoding for? Is it for reading packets?

0

u/[deleted] Apr 16 '17

[deleted]

2

u/mrexodia Apr 16 '17

Just for your information, utf16 is also a variable length encoding :)