GMime.FilterWindows¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
claimed_charset  | 
r  | 
charset the text stream is claimed to be  | 
|
is_windows  | 
r  | 
  | 
|
parent_object  | 
r  | 
parent   | 
Class Details¶
- class GMime.FilterWindows(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A filter for detecting whether or not a text stream claimed to be iso-8859-X is really that charset or if it is really a Windows-CP125x charset.
- classmethod new(claimed_charset)¶
 - Parameters:
 claimed_charset (
str) – charset that a text stream claims to be- Returns:
 a new windows filter.
- Return type:
 
Creates a new
GMime.FilterWindowsfilter. When a stream of text has been filtered, it can be determined whether or not said text stream was in claimed_charset or the equivalent Windows-CP125# charset.
- is_windows_charset()¶
 - Returns:
 Trueif the filtered stream has been detected to contain Windows-CP125# characters orFalseotherwise.- Return type:
 
Determines whether or not a Windows-CP125# charset has been detected so far.
- real_charset()¶
 - Returns:
 a const string pointer to the claimed charset if filtered text stream was found not to contain any Windows-CP125# characters or the proper Windows-CP125# charset.
- Return type:
 
Figures out the real charset that the text is encoded in based on whether or not Windows-CP125# characters were found.