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
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.8b1 1.2.7i4
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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