#charset #unicode #web

xmldecl

Extracts an encoding from an ASCII-based bogo-XML declaration in text/html in a Web-compatible way

3 unstable releases

0.2.0 Oct 1, 2021
0.1.1 Mar 22, 2021
0.1.0 Mar 9, 2021

#2785 in Text processing

Download history 310/week @ 2025-03-29 318/week @ 2025-04-05 344/week @ 2025-04-12 263/week @ 2025-04-19 248/week @ 2025-04-26 223/week @ 2025-05-03 299/week @ 2025-05-10 257/week @ 2025-05-17 277/week @ 2025-05-24 272/week @ 2025-05-31 270/week @ 2025-06-07 244/week @ 2025-06-14 312/week @ 2025-06-21 236/week @ 2025-06-28 276/week @ 2025-07-05 239/week @ 2025-07-12

1,090 downloads per month

Apache-2.0 OR MIT

15KB
333 lines

xmldecl

crates.io docs.rs Apache 2 OR MIT dual-licensed

xmldecl::parse() extracts an encoding from an ASCII-based bogo-XML declaration in text/html in a Web-compatible way.

See https://github.com/whatwg/html/pull/1752

Licensing

Please see the file named COPYRIGHT.

Documentation

Generated API documentation is available online.

Minimum Supported Rust Version

MSRV: 1.51.0

Release Notes

0.2.0

  • Remove the 1024-byte limit.

0.1.1

  • Map UTF-16LE and UTF-16BE to UTF-8 as in meta.

0.1.0

  • The initial release.

Dependencies

~3.5MB
~120K SLoC