func setEncoding(_ encoding: Int)

The function setEncoding() defines a default encoding which will be used when you get or set strings.

In Swift you can set any single-byte encoding, such as NSWindowsCP1251StringEncoding.


{
    // your code
    dbf.setEncoding(NSWindowsCP1251StringEncoding)
    // your code
}