setEncoding

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