I have a Unit where in Delphi 2007 i was able to encode/decode strings being compatible with the PHP version of Base64...
So, a String base64 encoded in PHP, i was able to decode it in my Delphi app..
Now using Delphi 2010, i wanna make it compatible... but i really don't have idea where is the problem... when i try to encode a text, it comes like "Chinese Characters"... i can change all Strings from the Unit to AnsiString but then i don't have a base64 support for Unicode!
Attached is the Unit... somebody know how to make it compatible with Unicode?
I don't have enough knowledge to change things in this unit where will be able to support unicode... in the official website, it's just abandoned and since 2003 there is no updates!
To test the unit, is something like
Example, 2 Edits over the form and 1 button
Edit2.Text := SZFullEncodeBase64(Edit1.T