PowerShell 命令 - 这个输出是什么?

PowerShell command - what does this output?

我的同事在网上找到了这个批处理命令(Windows 中的 Powershell 命令),我需要知道 "encoding" 它用来输出到文件的内容。我知道它不是utf-8。这是命令:

Select-String logfile.log -pattern "string pattern" | tee-object -filepath "output_file.txt" -append

我的 Windows 版本是 Windows Server 2012 RC Standard

取自https://technet.microsoft.com/en-us/library/hh849937.aspx

Tee-Object uses Unicode encoding when it writes to files. As a result, the output might not be formatted properly in files with a different encoding. To specify the encoding, use the Out-File cmdlet.

命令 Select-String 在 PowerShell 中找到。