Is it possible to reuse node_transform_node_params() that supports stream output? BSTR case workaround implies that output should already contain BOM.
my other version uses node_transform_node_params and leaves the BOM that's already there. i'll send it separately
Or do you mean node_transform_node_params() is already broken for BSTR output, because it skips BOM?
i didn't think it was broken. it needs to skip the BOM for other cases