Batch custom tee function redirect to file is inconsistent
Summary The batch tee function fails to handle raw binary byte streams correctly, resulting in data corruption where ASCII characters are replaced by garbled output (e.g., “Hello World” becomes “效汬潗汲”). The root cause is a mismatch between the input encoding and the batch processing logic. The input stream is likely UTF-16 encoded (standard output from … Read more