# get_stringencoding

This function identifies the encoding of the parameter octetstring. The following return values are allowed as charstring: ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.

Related keyword:

- octetstring
- charstring

### get_stringencoding(octetstring) return charstring

Example 1:

const octetstring c_ostr := 'EFBBBFC384C396C39CC3A4C3B6C3BC'O;

const charstring codingtype := get_stringencoding(c_ostr);

The constant called codingtype will contain the characters "UTF-8";