# oct2unichar

This function converts an octetstring value to an universal charstring value. The first parameter is the octets to be decoded into universal characters. The second parameter is the type of the string encoding. The allowed values for string encoding are: UTF-8, UTF-16, UTF-16BE, UTF-16LE, UTF-32, UTF-32BE, UTF-32LE. If it is omitted the default value UTF-8.

Related keyword:

- octetstring
- universal
- charstring

### oct2unichar(octetstring [,charstring]) return universal charstring

Example 1:

const octetstring c_ostr := 'C384C396C39CC3A4C3B6C3BC'O;

const universal charstring c_result := oct2unichar(c_ostr);

The constant called c_result will contain the characters "ÃÃÃÃ¤Ã¶Ã¼"