eVision Python API
Loading...
Searching...
No Matches
eVision.EByteInterpretationMode Class Reference

This enumeration contains the available modes to interpret bytes values of a decoded string. More...

Inheritance diagram for eVision.EByteInterpretationMode:
Collaboration diagram for eVision.EByteInterpretationMode:

Static Public Attributes

int Hexadecimal = -2
 Bytes will be converted to hexadecimal values surrounded by an escape character: "0xEFBFBD.
int UTF8 = 26
 Bytes will be converted to UTF-8.
int Auto = -3
 Bytes are converted to UTF-8 or their supported ECI table if possible.

Detailed Description

This enumeration contains the available modes to interpret bytes values of a decoded string.

Remarks:

eVision.EByteInterpretationMode.Hexadecimal: each byte is encoded with its corresponding two characters hexadecimal value. This mode does not throw exceptions. This mode overrides the byte encoding dictated by the ECI supported tables. If the conversion required by the selected mode is not feasible, an exception is thrown. The eVision.EByteInterpretationMode.Auto will not generate exceptions if the ECI table is not supported or if the conversion is not feasible in UTF-8.

Member Data Documentation

◆ Auto

int eVision.EByteInterpretationMode.Auto = -3
static

Bytes are converted to UTF-8 or their supported ECI table if possible.

They will be converted to hexadecimal with escape character otherwise.

◆ Hexadecimal

int eVision.EByteInterpretationMode.Hexadecimal = -2
static

Bytes will be converted to hexadecimal values surrounded by an escape character: "0xEFBFBD.

◆ UTF8

int eVision.EByteInterpretationMode.UTF8 = 26
static

Bytes will be converted to UTF-8.