rconn
Administrator
- May
- 13,543
- 241
Staff member
Is it me, or does tee not do utf-8 either?
Remember that TEE is running in a child pipe process, and has no idea what the parent process did with ASCII / UTF-8 / UTF-16 output. It's not really feasible to try to detect & convert on the fly with pipes (unless you can guarantee that every pipe will send enough data that the child process can parse it to identify it).
What TCC does in TEE is check the current default output format, and if UnicodeOutput or UTF8Output is set, TEE assumes that the input will be in the same format. In your case, you seem to ALWAYS want UTF-8, so you'd be better off setting it in your TCMD.INI.
The next version of TCC will have an option in TEE (and some of the other pipe fittings) to specify whether the input is ASCII or UTF-8 or UTF-16.