#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

#1836 in Text processing

Download history 130/week @ 2024-03-14 125/week @ 2024-03-21 228/week @ 2024-03-28 159/week @ 2024-04-04 174/week @ 2024-04-11 209/week @ 2024-04-18 335/week @ 2024-04-25 505/week @ 2024-05-02 354/week @ 2024-05-09 408/week @ 2024-05-16 310/week @ 2024-05-23 253/week @ 2024-05-30 174/week @ 2024-06-06 451/week @ 2024-06-13 172/week @ 2024-06-20 271/week @ 2024-06-27

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.

lib.rs:

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

Dependencies

~3MB
~118K SLoC