Home | Trees | Indices | Help |
|
---|
|
Version: $Id: util.py 1114 2008-03-05 13:22:59Z cthedot $
Author: Walter Doerwald
|
|||
IncrementalDecoder | |||
IncrementalEncoder | |||
StreamWriter | |||
StreamReader | |||
UTF8SigStreamWriter | |||
UTF8SigStreamReader |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Imports: codecs, marshal
|
Detect the encoding of the byte string input, which contains the beginning of a CSS file. To detect the encoding the first few bytes are used (or if input is ASCII compatible and starts with a charset rule the encoding name from the rule). If the encoding can't be detected yet, None is returned. final specifies whether more data is available in later calls or not. If final is true, _detectencoding_str() will never return None. |
Detect the encoding of the unicode string input, which contains the beginning of a CSS file. The encoding is detected from the charset rule at the beginning of input. If there is no charset rule, "utf-8" will be returned. If the encoding can't be detected yet, None is returned. final specifies whether more data will be available in later calls or not. If final is true, _detectencoding_unicode() will never return None. |
Replace the name of the encoding in the charset rule at the beginning of input with encoding. If input doesn't starts with a charset rule, input will be returned unmodified. If the encoding can't be found yet, None is returned. final specifies whether more data will be available in later calls or not. If final is true, _fixencoding() will never return None. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 23 01:20:44 2008 | http://epydoc.sourceforge.net |