fix: sqlpackage 管道输出 不使用 UTF-8编码特定,使用反而会乱码

This commit is contained in:
wjq 2024-12-13 08:09:08 +00:00
parent d4eb32adf8
commit 280b3fc7d1

View file

@ -167,7 +167,7 @@ public class FinallyPublishHelper(RemoteSyncServer context)
ProcessStartInfo startInfo =
new()
{
StandardOutputEncoding = System.Text.Encoding.UTF8,
// StandardOutputEncoding = System.Text.Encoding.UTF8,
Arguments = arguments,
FileName = RemoteSyncServer.SqlPackageAbPath, // The command to execute (can be any command line tool)
// The arguments to pass to the command (e.g., list directory contents)