I found the problem:
My native application calls a DLL that modifies the standard output.
I need to set the binary format for each message.
Thank you.