encodeToString
Encode the provided data to a string representation using the encoding implemented by this encoder.
Return
String representation of the encoded data.
Parameters
data
Raw data to encode in the target encoding and return as a string.
Encode the provided string to a string representation using the encoding implemented by this encoder; the string is interpreted using UTF-8
encoding.
Return
String representation of the encoded data.
Parameters
string
String to encode in the target encoding and return as a string.