UNIX 386 & HPUX

We have a C program which does the encryption and decryption. It is running fine in UNIX 386. But the same C program is giving different results in HP UX server.
We found that the Ascii codes (output) are different. I don;t know why it is giving different results. How can we get the same output that we get in UNIX 386. Is there any way by which we can simulate (or get) the same output that UNIX 386 is giving.

I'm not into programming, so I obviously cannot help here.

But I know that HP-UX usually uses 7-Bit ASCII charsets on console and that I usually have odd characters after each reboot, e.g. � instead of # for the prompt.
So I have to set it manually to 8-Bit ASCII, to have correct characters on console.
If I login via ssh (putty) the characters are correctly displayed.

Maybe this help a bit.

What do you mean by "the same program"?
You mean the same code compiled in HPUX?
And as for the output, you mean this program actually outputs ASCII codes instead of characters?

I mean the same COde when compiled and executed in HPUX gives different results from the one produced in UNIX 386 OS.

How can I get the result of UNIX 386 in HPUX OS.

Use the GCC Complier on Both Platforms.