How to encode strings with EncdDec library

后端 未结 2 1292
礼貌的吻别
礼貌的吻别 2021-01-16 07:26

I have this basic code that should encode a string and then get it back. However, the decoded text is garbage.

procedure TForm5.Button2Click(Sender: TObject)         


        
2条回答
  •  北海茫月
    2021-01-16 08:07

    Quick fix:

    ANSI is enough for me since the text resulted after encoding must be as short as possible (easy to send via email). So, I put my ANSI string into a stream and encoded/decoded the stream. It worked!


    Jesus. Some documentation (at least a single comment line) would have been nice!

提交回复
热议问题