#encoding #web #unicode #charset

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

#1490 in Text processing

Download history 635/week @ 2023-01-22 636/week @ 2023-01-29 391/week @ 2023-02-05 549/week @ 2023-02-12 582/week @ 2023-02-19 590/week @ 2023-02-26 611/week @ 2023-03-05 705/week @ 2023-03-12 637/week @ 2023-03-19 548/week @ 2023-03-26 434/week @ 2023-04-02 477/week @ 2023-04-09 593/week @ 2023-04-16 400/week @ 2023-04-23 538/week @ 2023-04-30 602/week @ 2023-05-07

2,164 downloads per month

Apache-2.0 OR MIT

14KB
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