Werk #3072: windows agent: agent can now handle utf-16 encoded output from plugins

Component Checks & agents
Title windows agent: agent can now handle utf-16 encoded output from plugins
Date Feb 12, 2016
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.2.7i4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.2.8b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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))

To the list of all Werks