我编写了如下代码,
<Extension charconv>
Module xm_charconv
AutodetectCharsets utf-8, euc-jp, utf-16, utf-32, iso8859-2
</Extension>
和,
<Input sql-ERlogs>
Module im_file
File 'C:\Program Files\Microsoft SQL Server\MSSQL11.SQL\MSSQL\Log\ER*'
ReadFromLast TRUE
Exec convert_fields("AUTO", "utf-8"); if $raw_event == '' drop();
</Input>
我得到了如下图所示的输出
如果我扩展其中一个日志,我会得到这样的原始日志,
为什么它在展开之前是 Unicode 字符?