From ead20cc806223b64cdeb93a5a1b2757b7bbdca0f Mon Sep 17 00:00:00 2001 From: Changhua Date: Fri, 14 Mar 2025 00:17:59 +0800 Subject: [PATCH] chore: fix encoding --- WeChatFerry/license_check.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeChatFerry/license_check.bat b/WeChatFerry/license_check.bat index f097f04..474519a 100644 --- a/WeChatFerry/license_check.bat +++ b/WeChatFerry/license_check.bat @@ -25,7 +25,7 @@ type "DISCLAIMER.md" > temp_disclaimer.txt :: 使用 PowerShell 显示弹窗 powershell -NoProfile -Command ^ - "$text = Get-Content -Raw -Path 'temp_disclaimer.txt';" ^ + "$text = [System.IO.File]::ReadAllText('temp_disclaimer.txt', [System.Text.Encoding]::UTF8);" ^ "Add-Type -AssemblyName PresentationFramework;" ^ "$result = [System.Windows.MessageBox]::Show($text, '免责声明', 'OKCancel', 'Warning');" ^ "if ($result -ne 'OK') { exit 1 }"