GetCharacterSerialization

This call retrieves the values as set by

The returns the size of a single character in bits, i.e. 1 byte is 8 bits, this can be 8, 16 or 32 depending on settings and operating system

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "GetCharacterSerialization")]
public static extern Int64 GetCharacterSerialization(Int64 model, out Int64 encoding, out byte ascii);    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property encoding

Size: 64 bit / 8 byte (reference)
If the encoding value is non-zero the following values are possible (if zero encoding is kept as defined)
    32  [default] encoding ignored
    64  encoding Windows 1250
    65  encoding Windows 1251
    66  encoding Windows 1252
    67  encoding Windows 1253
    68  encoding Windows 1254
    69  encoding Windows 1255
    70  encoding Windows 1256
    71  encoding Windows 1257
    72  encoding Windows 1258
    128  encoding ISO8859 1
    129  encoding ISO8859 2
    130  encoding ISO8859 3
    131  encoding ISO8859 4
    132  encoding ISO8859 5
    133  encoding ISO8859 6
    134  encoding ISO8859 7
    135  encoding ISO8859 8
    136  encoding ISO8859 9
    137  encoding ISO8859 10
    138  encoding ISO8859 11
         encoding ISO8859 12 => does not exist
    140  encoding ISO8859 13
    141  encoding ISO8859 14
    142  encoding ISO8859 15
    143  encoding ISO8859 16
    160  encoding MACINTOSH CENTRAL EUROPEAN
    192  encoding SHIFT JIS X 213


Property ascii

Size: 64 bit / 8 byte (reference)
A pointer to a boolean that is set by the call depending on the current state. The ascii value defines
    true  [default] 8 bit serialization
    false  16/32 bit serialization