Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
prescan a byte stream to determine its encoding #58
It would be really helpful to get the algorithm  implemented in gumbo. The parser doesn't deal with anything besides UTF-8, but still has most bits in place to implement the algo.