TextPart.setCharset

void setCharset(string charset)

Sets the charset parameter on the Content-Type header to the specified value.

Parameters

charsetthe name of the charset