Skip to content

fix: resolve UTF-8 encoding issue in start.bat (#44)#45

Merged
SonicBotMan merged 1 commit into
mainfrom
fix/issue-44-utf8-encoding
Mar 15, 2026
Merged

fix: resolve UTF-8 encoding issue in start.bat (#44)#45
SonicBotMan merged 1 commit into
mainfrom
fix/issue-44-utf8-encoding

Conversation

@SonicBotMan

Copy link
Copy Markdown
Owner

🐛 Bug Fix

Fixes #44, Related #37

Problem

  • start.bat was saved with UTF-8 encoding
  • Windows cmd.exe uses GBK/CP936 by default
  • Chinese characters were misinterpreted, causing script to fail completely

Solution

  • ✅ Remove all Chinese characters from start.bat
  • ✅ Convert to pure English for better international compatibility
  • ✅ Add .gitattributes to enforce correct line endings
  • ✅ Add .editorconfig to prevent future encoding issues

Testing

  • Test on Chinese Windows system
  • Verify no encoding errors
  • Confirm script runs correctly

Changes

  • start.bat: Removed Chinese comments, converted to English
  • .gitattributes: Added to enforce CRLF for .bat files
  • .editorconfig: Added to prevent future encoding issues

Priority

🔴 P0 Hotfix - This fix resolves a critical issue where v5.0.0 was completely unusable on Chinese Windows systems.


This PR was created automatically by AI assistant

- Remove all Chinese characters from start.bat
- Convert to pure English for better compatibility
- Add .gitattributes to enforce correct line endings
- Add .editorconfig to prevent future encoding issues

Fixes #44
Related #37
@SonicBotMan SonicBotMan merged commit 97ef22a into main Mar 15, 2026
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.

[BUG v5.0.0] start.bat 编码为 UTF-8,导致中文 Windows 系统乱码并完全无法运行

1 participant