Skip to content

More Extendability for CSV Reader#4845

Merged
oleibman merged 2 commits into
PHPOffice:masterfrom
oleibman:csvnonutf8
Apr 5, 2026
Merged

More Extendability for CSV Reader#4845
oleibman merged 2 commits into
PHPOffice:masterfrom
oleibman:csvnonutf8

Conversation

@oleibman
Copy link
Copy Markdown
Collaborator

A follow-up to PR #4837. PR #4827, to which I am not necessarily committed, shows that there could be a use case for letting a user perform customized logic to convert a non-UTF8-encoded CSV. In addition, several other CSV Reader properties require the use of static or locale properties, which is somewhat problematic; this PR allows them to be set as instance variables, falling back to static/locale only when unset.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

A follow-up to PR PHPOffice#4837. PR PHPOffice#4827, to which I am not necessarily committed, shows that there could be a use case for letting a user perform customized logic to convert a non-UTF8-encoded CSV. In addition, several other CSV Reader properties require the use of static or locale properties, which is somewhat problematic; this PR allows them to be set as instance variables, falling back to static/locale only when unset.
@oleibman oleibman enabled auto-merge April 5, 2026 07:03
@oleibman oleibman added this pull request to the merge queue Apr 5, 2026
Merged via the queue into PHPOffice:master with commit 8a9e9b5 Apr 5, 2026
14 checks passed
@oleibman oleibman deleted the csvnonutf8 branch April 5, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant