Cuối cùng tôi đã thực hiện thành công việc này bằng cách ghi đầu ra vào tệp temp.txt và thêm lệnh PowerShell tiếp theo để chuyển đổi nó thành UTF-8:
-- Change encoding to UTF-8 with PowerShell
SET @command = 'powershell -Command "Get-Content 'example@sqldat.com+'\temp.txt -Encoding Unicode | Set-Content -Encoding UTF8 'example@sqldat.com+'\'example@sqldat.com+'"';
EXEC xp_cmdshell @command;