Faster noise scoring in both the pure-Python and Cython implementations by reusing
Unicode character properties. The Cython extensions also speed up language ranking
and checks for suspicious transitions between Unicode blocks.
Reduced detection overhead by skipping redundant UTF-8 sample alignment checks and
repeated logging checks when tracing is disabled.
Raised the setuptools upper bound to <84.3, allowing source builds with setuptools
84.1 and 84.2. (#828)
Fixed
Fixed detection of registered multibyte codecs when a sample boundary splits a character.
The detector now strictly decodes the full input with the custom codec before sampling
the resulting text.
Kept single-byte candidates in consideration when a Chinese, Japanese or Korean
decoding has measurable noise and no matching language.
Recognized ASCII information separators (0x1C through 0x1F) as whitespace when
scoring text, including record-separated JSON. (#821)
Removed the leading GB18030 signature from lazily decoded matches on large inputs. (#820)
Fixed UTF-7 text with a signature being misidentified as ASCII when a sample
started in the middle of a long encoded sequence. (#839)
Fixed language detection returning names such as English— when only an alternative
language profile met the coherence threshold. (#823)
CharsetMatch.output() now updates a UTF-8 declaration when transcoding to another
encoding and preserves the last successful output if a later conversion fails. (#819, #814)
The legacy detect() function now reports ISO-8859-1 for Latin-1 by default. (#813)
Both python -m charset_normalizer and python -m charset_normalizer.cli now
propagate the CLI exit status. (#817)
CLI JSON output with --with-alternative now always uses a top-level array,
including for a single result or a file with no match. (#822)
normalizer --normalize now appends the detected encoding to extensionless
filenames when creating a copy (for example, README becomes README.cp1252). (#838)
Excluded Python 3.16's utf_7_imap mailbox codec from detection to prevent
errors when probing unrelated encodings. (#825)
Configuration
📅Schedule: (in timezone America/Edmonton)
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.
If you want to rebase/retry this PR, check this box
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [charset-normalizer](https://github.com/jawah/charset_normalizer) ([changelog](https://github.com/jawah/charset_normalizer/blob/master/CHANGELOG.md)) | patch | `==3.5.2` → `==3.5.3` |
---
### Release Notes
<details>
<summary>jawah/charset_normalizer (charset-normalizer)</summary>
### [`v3.5.3`](https://github.com/jawah/charset_normalizer/blob/HEAD/CHANGELOG.md#353-2026-11-23)
[Compare Source](https://github.com/jawah/charset_normalizer/compare/3.5.2...3.5.3)
##### Changed
- Faster noise scoring in both the pure-Python and Cython implementations by reusing
Unicode character properties. The Cython extensions also speed up language ranking
and checks for suspicious transitions between Unicode blocks.
- Reduced detection overhead by skipping redundant UTF-8 sample alignment checks and
repeated logging checks when tracing is disabled.
- Raised the setuptools upper bound to `<84.3`, allowing source builds with setuptools
84.1 and 84.2. ([#​828](https://github.com/jawah/charset_normalizer/issues/828))
##### Fixed
- Fixed detection of registered multibyte codecs when a sample boundary splits a character.
The detector now strictly decodes the full input with the custom codec before sampling
the resulting text.
- Kept single-byte candidates in consideration when a Chinese, Japanese or Korean
decoding has measurable noise and no matching language.
- Recognized ASCII information separators (`0x1C` through `0x1F`) as whitespace when
scoring text, including record-separated JSON. ([#​821](https://github.com/jawah/charset_normalizer/issues/821))
- Removed the leading GB18030 signature from lazily decoded matches on large inputs. ([#​820](https://github.com/jawah/charset_normalizer/issues/820))
- Fixed UTF-7 text with a signature being misidentified as ASCII when a sample
started in the middle of a long encoded sequence. ([#​839](https://github.com/jawah/charset_normalizer/issues/839))
- Fixed language detection returning names such as `English—` when only an alternative
language profile met the coherence threshold. ([#​823](https://github.com/jawah/charset_normalizer/issues/823))
- `CharsetMatch.output()` now updates a UTF-8 declaration when transcoding to another
encoding and preserves the last successful output if a later conversion fails. ([#​819](https://github.com/jawah/charset_normalizer/issues/819), [#​814](https://github.com/jawah/charset_normalizer/issues/814))
- The legacy `detect()` function now reports `ISO-8859-1` for Latin-1 by default. ([#​813](https://github.com/jawah/charset_normalizer/issues/813))
- Both `python -m charset_normalizer` and `python -m charset_normalizer.cli` now
propagate the CLI exit status. ([#​817](https://github.com/jawah/charset_normalizer/issues/817))
- CLI JSON output with `--with-alternative` now always uses a top-level array,
including for a single result or a file with no match. ([#​822](https://github.com/jawah/charset_normalizer/issues/822))
- `normalizer --normalize` now appends the detected encoding to extensionless
filenames when creating a copy (for example, `README` becomes `README.cp1252`). ([#​838](https://github.com/jawah/charset_normalizer/issues/838))
- Excluded Python 3.16's `utf_7_imap` mailbox codec from detection to prevent
errors when probing unrelated encodings. ([#​825](https://github.com/jawah/charset_normalizer/issues/825))
</details>
---
### Configuration
📅 **Schedule**: (in timezone America/Edmonton)
- 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 [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNTcuOSIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Ny45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
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:
==3.5.2→==3.5.3Release Notes
jawah/charset_normalizer (charset-normalizer)
v3.5.3Compare Source
Changed
Unicode character properties. The Cython extensions also speed up language ranking
and checks for suspicious transitions between Unicode blocks.
repeated logging checks when tracing is disabled.
<84.3, allowing source builds with setuptools84.1 and 84.2. (#828)
Fixed
The detector now strictly decodes the full input with the custom codec before sampling
the resulting text.
decoding has measurable noise and no matching language.
0x1Cthrough0x1F) as whitespace whenscoring text, including record-separated JSON. (#821)
started in the middle of a long encoded sequence. (#839)
English—when only an alternativelanguage profile met the coherence threshold. (#823)
CharsetMatch.output()now updates a UTF-8 declaration when transcoding to anotherencoding and preserves the last successful output if a later conversion fails. (#819, #814)
detect()function now reportsISO-8859-1for Latin-1 by default. (#813)python -m charset_normalizerandpython -m charset_normalizer.clinowpropagate the CLI exit status. (#817)
--with-alternativenow always uses a top-level array,including for a single result or a file with no match. (#822)
normalizer --normalizenow appends the detected encoding to extensionlessfilenames when creating a copy (for example,
READMEbecomesREADME.cp1252). (#838)utf_7_imapmailbox codec from detection to preventerrors when probing unrelated encodings. (#825)
Configuration
📅 Schedule: (in timezone America/Edmonton)
🚦 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 Mend Renovate CLI.