Skip to content

Fix UnicodeDecodeError on Windows by specifying UTF-8 encoding#2799

Merged
beckermr merged 1 commit intoconda-forge:mainfrom
Akash504-ai:fix-utf8-encoding
Apr 8, 2026
Merged

Fix UnicodeDecodeError on Windows by specifying UTF-8 encoding#2799
beckermr merged 1 commit intoconda-forge:mainfrom
Akash504-ai:fix-utf8-encoding

Conversation

@Akash504-ai
Copy link
Copy Markdown
Contributor

Summary

Fixes a UnicodeDecodeError when running the documentation build on Windows.

Details

On Windows, Python defaults to the cp1252 encoding when reading files.
The CFEP markdown files are UTF-8 encoded, which causes a decoding error during:

UnicodeDecodeError: 'charmap' codec can't decode byte ...

This change explicitly specifies UTF-8 encoding when reading CFEP files, ensuring consistent cross-platform behavior.

Testing

  • Tested locally on Windows
  • Verified .ci_scripts/update_docs runs successfully after the fix

Notes

This improves local development experience and ensures compatibility across operating systems.

@Akash504-ai Akash504-ai requested a review from a team as a code owner April 7, 2026 10:07
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2026

Deploy Preview for conda-forge-previews ready!

Name Link
🔨 Latest commit f48734d
🔍 Latest deploy log https://app.netlify.com/projects/conda-forge-previews/deploys/69d4d768bd824c0008518700
😎 Deploy Preview https://deploy-preview-2799--conda-forge-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 70
Accessibility: 96
Best Practices: 100
SEO: 89
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@beckermr beckermr enabled auto-merge (squash) April 7, 2026 14:53
@beckermr beckermr disabled auto-merge April 8, 2026 12:52
@beckermr beckermr merged commit c52ebdb into conda-forge:main Apr 8, 2026
8 of 9 checks passed
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.

2 participants