Quote Originally Posted by Frank Cheng View Post
The direct_output is just to demonstrate the problem. Binary mode doesn't change the encoding.

The problem I ran into was to use HttpPostAddrRequest with paXml without doing OEM->utf8.

Frank Cheng
and binary mode should not change the encoding either.
Focus his theory is making a lot more sense.
I ran a few quick tests after his reply and I was able to write out non printable characters without switching into binary mode.

What I think that happened is that I got confused with direct_input where AFAICR the binary mode is mandatory if your characters contain non printable ones.

Thanks guys.
--
Wil