#web #charset #unicode

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

#222 in Internationalization (i18n)

Download history 697/week @ 2024-07-27 571/week @ 2024-08-03 270/week @ 2024-08-10 338/week @ 2024-08-17 507/week @ 2024-08-24 268/week @ 2024-08-31 544/week @ 2024-09-07 625/week @ 2024-09-14 364/week @ 2024-09-21 285/week @ 2024-09-28 432/week @ 2024-10-05 386/week @ 2024-10-12 323/week @ 2024-10-19 409/week @ 2024-10-26 308/week @ 2024-11-02 118/week @ 2024-11-09

1,240 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

~3.5MB
~119K SLoC