from enum import Enum class StringEncodingMode(Enum): ASCII = 0 UTF8 = 1 UTF16 = 2 UTF32 = 3