Skip to content

fix: change VBS encoding to UTF-16 LE to fix compatibility issues#1331

Open
yolol1 wants to merge 1 commit into
ihmily:mainfrom
yolol1:dev
Open

fix: change VBS encoding to UTF-16 LE to fix compatibility issues#1331
yolol1 wants to merge 1 commit into
ihmily:mainfrom
yolol1:dev

Conversation

@yolol1

@yolol1 yolol1 commented Dec 11, 2025

Copy link
Copy Markdown

The original VBS script was encoded in GB2312 (ANSI), which causes execution errors and moji-bake on non-Chinese Windows systems (e.g., English Win11).

Converting to UTF-16 LE ensures the script runs correctly on all Windows locales by allowing the WScript engine to properly recognize characters.

📜 标题(Title)

请提供这个Pull Request中提议的更改的简洁描述:

  • Fix: Convert VBS encoding to UTF-16 LE to resolve compatibility issues on non-Chinese Windows

🔍 描述(Description)

请描述这个PR做了什么/为什么这些更改是必要的:

image
  • The original VBS script was encoded in GB2312 (ANSI), which causes execution errors and moji-bake on non-Chinese Windows systems (e.g., English Win11).

  • Converting to UTF-16 LE ensures the script runs correctly on all Windows locales by allowing the WScript engine to properly recognize characters.

📝 类型(Type of Change)

这个PR引入了哪种类型的更改?(请勾选所有适用的选项)

  • 修复Bug
  • 新功能
  • 代码风格更新(格式化,局部变量)
  • 重构(改进代码结构)
  • 构建相关更改(依赖项,构建脚本等)
  • 其他:请描述

🏗️ 测试(Testing)

请描述您已经进行的测试:

  • Tested on Windows 11 (English System Locale): Confirmed the script runs without syntax errors or garbled text.
  • Tested on Windows 11 (Chinese System Locale): Verified the script continues to work normally.

如果适用,请提供测试更改的说明:

  • Run the VBS script on a machine with English system locale to verify the fix.

📋 检查清单(Checklist)

在您创建这个PR之前,请确保以下所有框都被勾选,方法是在每个框中放置一个x

  • 我已经阅读了贡献指南文档
  • 我的更改没有产生新的警告
  • 我已经添加了覆盖我更改的测试
  • 我已经相应地更新了文档(如果适用)
  • 我遵循了这个项目的代码风格

注意: 这个PR在所有复选框被勾选之前不会被合并。


感谢您的贡献!

The original VBS script was encoded in GB2312 (ANSI), which causes execution errors and moji-bake on non-Chinese Windows systems (e.g., English Win11).

Converting to UTF-16 LE ensures the script runs correctly on all Windows locales by allowing the WScript engine to properly recognize characters.
@yolol1

yolol1 commented Dec 11, 2025

Copy link
Copy Markdown
Author

Note: Since the file encoding was changed from GB2312 to UTF-16 LE, the diff may show the entire file as changed or as binary. This is expected.

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