Problem
I tried to use the Pascal function EncodeStringBase64
, assuming Inno Setup had access to the Pascal standard library but it fails to find it and provides an Unknown Identifier
error.
https://www.freepascal.org/docs-html/fcl/base64/encodestringbase64.html
I also found this code to carry out the conversion but it seems to be restricted to AnsiStrings.
https://github.com/docker/toolbox/blob/master/windows/base64.iss
Question
Ideally I'd like to use the standard library function, is there any way that I can access it?
If not, is the code using AnsiStrings safe to use on normal Unicode strings if I change the signature?
I'm going to carry out testing for it, but I'm worried that I'll test a good number of use cases, but this wouldn't guarantee that it's actually suitable for every character, and edge cases may exist.