Skip to content

docs: add Windows UTF-8 encoding note to getting started guide#4699

Merged
escapedcat merged 1 commit intoconventional-changelog:masterfrom
Chessing234:fix/issue-788
Apr 4, 2026
Merged

docs: add Windows UTF-8 encoding note to getting started guide#4699
escapedcat merged 1 commit intoconventional-changelog:masterfrom
Chessing234:fix/issue-788

Conversation

@Chessing234
Copy link
Copy Markdown
Contributor

Summary

  • Added a note in the Getting Started guide warning Windows users that echo may create config files with non-UTF-8 encoding
  • Provides a PowerShell alternative using Out-File -Encoding utf8 and recommends creating the file manually in an editor

Motivation

On Windows, echo "..." > file.js in both cmd.exe and PowerShell creates files with non-UTF-8 encoding (UTF-16LE or system ANSI code page), which causes commitlint to fail reading the configuration. This has been a known pain point since 2019.

Test plan

  • Verified the docs render correctly with the new > [!NOTE] block
  • Passed lint-staged and prettier checks

Closes #788

🤖 Generated with Claude Code

The `echo` command on Windows (both cmd.exe and PowerShell) may create
files with non-UTF-8 encoding, causing commitlint to fail reading the
configuration. Added a note advising Windows users to create the config
file manually or use PowerShell's Out-File with explicit UTF-8 encoding.

Closes conventional-changelog#788

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@qodo-code-review
Copy link
Copy Markdown

Review Summary by Qodo

Add Windows UTF-8 encoding warning to getting started guide

📝 Documentation

Grey Divider

Walkthroughs

Description
• Added Windows UTF-8 encoding note to getting started guide
• Warns users about echo command encoding issues on Windows
• Provides PowerShell alternative with explicit UTF-8 encoding
• Recommends manual file creation as workaround
Diagram
flowchart LR
  A["Getting Started Guide"] -->|"Add NOTE block"| B["Windows UTF-8 Warning"]
  B -->|"Explains problem"| C["echo creates non-UTF-8 files"]
  B -->|"Provides solutions"| D["Manual creation or PowerShell Out-File"]
Loading

Grey Divider

File Changes

1. docs/guides/getting-started.md 📝 Documentation +7/-0

Add Windows UTF-8 encoding warning note

• Added a NOTE block warning Windows users about echo command encoding issues
• Explains that echo in PowerShell and cmd.exe may create files with UTF-16LE or system ANSI
 encoding
• Provides PowerShell alternative using Out-File -Encoding utf8 for proper UTF-8 encoding
• Recommends manual file creation in an editor as another workaround

docs/guides/getting-started.md


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented Apr 4, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@escapedcat escapedcat merged commit 6ebf969 into conventional-changelog:master Apr 4, 2026
15 checks passed
This was referenced Apr 25, 2026
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.

[windows] enforce to use UTF-8

2 participants