Werk #3072: windows agent: agent can now handle utf-16 encoded output from plugins
Komponente | Checks & agents |
Titel | windows agent: agent can now handle utf-16 encoded output from plugins |
Datum | 12.02.2016 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.2.8b1 1.2.7i4 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
utf-16 is the default unicode encoding used on windows and appears to be the only one supported as an output encoding for vbs scripts. Previously the agent would print an empty string instead of the utf-16 encoded output. For this to work the plugin/local check has to use a unicode-enabled stdout and print a utf-16 BOM, i.e.: Set objStdout = fso.GetStandardStream(1, True) objStdout.Write(chrW(&HFEFF))