Camel.MimeFilterWindows

g Camel.MimeFilter Camel.MimeFilter Camel.MimeFilterWindows Camel.MimeFilterWindows Camel.MimeFilter->Camel.MimeFilterWindows GObject.Object GObject.Object GObject.Object->Camel.MimeFilter

Subclasses:

None

Methods

Inherited:

Camel.MimeFilter (6), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (claimed_charset)

is_windows_charset ()

real_charset ()

Virtual Methods

Inherited:

Camel.MimeFilter (3), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.MimeFilter

r

Class Details

class Camel.MimeFilterWindows(**kwargs)
Bases:

Camel.MimeFilter

Abstract:

No

Structure:

Camel.MimeFilterWindowsClass

classmethod new(claimed_charset)
Parameters:

claimed_charset (str) – ISO charset name

Returns:

a new Camel.MimeFilter object

Return type:

Camel.MimeFilter

Create a new Camel.MimeFilterWindows object that will analyse whether or not the text is really encoded in claimed_charset.

is_windows_charset()
Returns:

True if the text was found to be in a Microsoft Windows CP125x charset or False otherwise.

Return type:

bool

Get whether or not the textual content filtered by self is really in a Microsoft Windows charset rather than the claimed ISO charset.

real_charset()
Returns:

the name of the actual charset

Return type:

str

Get the name of the actual charset used to encode the textual content filtered by self (it will either be the original claimed_charset passed in at creation time or the Windows-CP125x equivalent).