Werk #3072

KomponenteChecks & Agents
Titelwindows agent: agent can now handle utf-16 encoded output from plugins
Datum2016-02-12 10:05:33
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.2.7i4,1.2.8b1
Level1 - Trivial Change
KlasseBug Fix
KompatibilitätKompatibel- benötigt keine 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))