# encode_base64

This function converts an octetstring value to a charstring value. The octets are converted via Base64 encoding (binary-to-text) into ASCII characters. The allowed values for the second parameter (use_linebreaks) are: true, false. If the use_linebreaks parameter is omitted the default value is false.

Related keyword:

- boolean
- charstring
- octetstring

### encode_base64(octetstring [,boolean]) return charstring

Example 1:

const octetstring c_ostr := '42617365363420656E636F64696E6720736368656D65'O;

const charstring c_result := encode_base64(c_ostr, false);

The constant called c_result will contain the characters "QmFzZTY0IGVuY29kaW5nIHNjaGVtZQ=="