← 输入框|github.com|刷新
Skip to content

Lazy codepage fallback - #790

Merged
appel1 merged 6 commits into
developfrom
lazy-codepage-fallback
Nov 16, 2026
Merged

appel1 merged 6 commits into
developfrom
lazy-codepage-fallback

Conversation

@appel1

@appel1 appel1 commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

The .NET 10 target now falls back to the built-in code-page provider without registering it globally. Explicit registration is still preferable because it avoids a failed lookup and exception, but legacy code pages are mainly needed for older XLS files and non-UTF-8 CSV.

Code pages are resolved lazily, and XLS code-page IDs are looked up directly, avoiding name mappings that could resolve incorrectly or fail. Unrecognized XLS code-page IDs now throw instead of retaining the previous encoding, which could silently corrupt text. Unsupported code pages also throw.

The .NET Standard targets may still require provider registration.

@appel1
appel1 merged commit d2d2402 into develop Nov 16, 2026
5 checks passed
@appel1
appel1 deleted the lazy-codepage-fallback branch November 16, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant