Hi,
I have a decryption routine in VB6. I now want the same decryption in C#. The strings that need decryption are in unicode, so I use Encoding.Unicode.GetString to read the input in C#. The input now looks exactly the same as in VB6.
The first few characters in the loop are decrypted ok! Then I encounter a difference... The program parses the character '˜' with a different index than in VB6.
When debugging I see the following in VB and in .Net:
VB6 ˜ = code 152
C# ˜ = code 732
Needless to say, decryption fails. I need to get 152 for the character mentioned above.
What's wrong here?
Regards,
Michel