Added include_encodings and exclude_encodings parameters to detect(), detect_all(), and UniversalDetector — restrict or exclude specific encodings from the candidate set, with corresponding -i/--include-encodings and -x/--exclude-encodings CLI flags (#343)
Added no_match_encoding (default "cp1252") and empty_input_encoding (default "utf-8") parameters — control which encoding is returned when no candidate survives the pipeline or the input is empty, with corresponding CLI flags (#343)
Added -l/--language flag to chardetect CLI — shows the detected language (ISO 639-1 code and English name) alongside the encoding (#342)
Fixes
Fixed null-separated ASCII data being misdetected as UTF-16-BE (#346, #347)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [chardet](https://github.com/chardet/chardet) ([changelog](https://chardet.readthedocs.io/en/latest/changelog.html)) | minor | `==7.1.0` → `==7.2.0` |
---
### Release Notes
<details>
<summary>chardet/chardet (chardet)</summary>
### [`v7.2.0`](https://github.com/chardet/chardet/releases/tag/7.2.0): chardet 7.2.0
[Compare Source](https://github.com/chardet/chardet/compare/7.1.0...7.2.0)
#### Features
- Added `include_encodings` and `exclude_encodings` parameters to `detect()`, `detect_all()`, and `UniversalDetector` — restrict or exclude specific encodings from the candidate set, with corresponding `-i`/`--include-encodings` and `-x`/`--exclude-encodings` CLI flags ([#​343](https://github.com/chardet/chardet/pull/343))
- Added `no_match_encoding` (default `"cp1252"`) and `empty_input_encoding` (default `"utf-8"`) parameters — control which encoding is returned when no candidate survives the pipeline or the input is empty, with corresponding CLI flags ([#​343](https://github.com/chardet/chardet/pull/343))
- Added `-l`/`--language` flag to `chardetect` CLI — shows the detected language (ISO 639-1 code and English name) alongside the encoding ([#​342](https://github.com/chardet/chardet/pull/342))
#### Fixes
- Fixed null-separated ASCII data being misdetected as UTF-16-BE ([#​346](https://github.com/chardet/chardet/issues/346), [#​347](https://github.com/chardet/chardet/pull/347))
**Full changelog:** <https://chardet.readthedocs.io/en/latest/changelog.html>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My43Ny43IiwidXBkYXRlZEluVmVyIjoiNDMuNzcuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
==7.1.0→==7.2.0Release Notes
chardet/chardet (chardet)
v7.2.0: chardet 7.2.0Compare Source
Features
include_encodingsandexclude_encodingsparameters todetect(),detect_all(), andUniversalDetector— restrict or exclude specific encodings from the candidate set, with corresponding-i/--include-encodingsand-x/--exclude-encodingsCLI flags (#343)no_match_encoding(default"cp1252") andempty_input_encoding(default"utf-8") parameters — control which encoding is returned when no candidate survives the pipeline or the input is empty, with corresponding CLI flags (#343)-l/--languageflag tochardetectCLI — shows the detected language (ISO 639-1 code and English name) alongside the encoding (#342)Fixes
Full changelog: https://chardet.readthedocs.io/en/latest/changelog.html
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.