Skip to content

Fix changelog_entry.yaml UTF-8 encoding and add CI test#231

Merged
MaxGhenis merged 1 commit into
mainfrom
fix/changelog-utf8-encoding
Nov 28, 2025
Merged

Fix changelog_entry.yaml UTF-8 encoding and add CI test#231
MaxGhenis merged 1 commit into
mainfrom
fix/changelog-utf8-encoding

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

  • Remove Latin-1 encoded £ symbols from changelog_entry.yaml that caused the yaml-changelog tool to fail with UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3
  • Add test_changelog_encoding.py to validate UTF-8 encoding in CI, preventing future encoding issues from breaking the versioning workflow

Test plan

  • New test fails when changelog has Latin-1 encoding
  • New test passes when changelog has valid UTF-8 encoding
  • CI versioning workflow passes

Fixes the CI failure at: https://github.com/PolicyEngine/policyengine-uk-data/actions/runs/19768742887/job/56647887402

🤖 Generated with Claude Code

- Remove Latin-1 encoded £ symbols that caused yaml-changelog to fail
- Add test_changelog_encoding.py to validate UTF-8 encoding in CI
- Prevents future encoding issues from breaking the versioning workflow

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 7240646 into main Nov 28, 2025
3 checks passed
@MaxGhenis MaxGhenis deleted the fix/changelog-utf8-encoding branch November 28, 2025 16:14
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