EncodeString is a Class function in TIdEncoder that provides encoding of the value in AIn using a temporary instance of TIdEncoder. EncodeString calls Encode using the transient instance to get the return value. The temporary TIdEncoder instance is freed before exiting from the EncodeString method.
Applications can use EncodeString when an instance of TIdEncoder is neither needed nor available in the application.