Charset (NotesMIMEEntity - JavaScript)

Read-only. Content character set of a MIME entity.

Defined in

NotesMIMEEntity

Syntax

getCharset() : string

Usage

This property applies where text is the Content-Type. Otherwise, this property is an empty string.

For a list of valid character sets, see the Internet Assigned Numbers Authority (iana) at http://www.iana.org. Look for "Character Sets" under "Protocol Number Assignment Services."

Examples

This button gets the MIME content from the current document.
var doc:NotesDocument = currentDocument.getDocument();
var mime:NotesMIMEEntity = doc.getMIMEEntity();
if (mime != null) {
	var m:string = "Content type: " + mime.getContentType() + "\n" +
	"Content subtype: " + mime.getContentSubType() + "\n" +
	"Character set: " + mime.getCharset() + "\n" +
	"Encoding: " + mime.getEncoding();
	requestScope.status = doc.getItemValueString("Subject") + "\n" + m + "\n" +
	mime.getHeaders() + "\n" + mime.getContentAsText();
} else {
	requestScope.status = "Not MIME - " + doc.getItemValueString("Subject");
}