Subject Unicode / Encryption issue
Author Robert Martin
Hi

We have a string encryption string function that can encode a unicode
text string and later decode it to the original (unicode) text. This
was tested with text in TEdit controls as follows ...

(Note these values are made up and this is shown to show how the system
was tested)

Edit1.Text = 'fred'
-> Edit1 Encrypted to Edit2
Edit2.Text = '12345' (This normally shows as funny characters)

-Edit2 decrypted to Edit3
Edit3.Text = 'fred'

However In actual use it fails to decrypt. I have tracked this to what
is actually stored in the database. In my test app the value in shown
in Edit2 is not what is stored in the database !

I am using IBObjects ver 5.2.0 6 and my DB field is defined as UTF8. I
am using .AsString to read and write from the database.

Any idea what is going on?

Thanks
Rob