class KEncodingDetector |
|
|
Provides encoding detection capabilities.
|
|
Default codec is latin1 (as html spec says), EncodingChoiceSource is default, AutoDetectScript=Semiautomatic |
|
Allows to set Default codec, EncodingChoiceSource, AutoDetectScript |
|
Analyze text data. Returns true if there was enough data for accurate detection |
|
|
The main class method Calls protected analyze() only the first time of the whole object life Replaces all null chars with spaces. |
|
|
Convenience method that uses buffering. It waits for full html head to be buffered (i.e. calls analyze every time until it returns true). Replaces all null chars with spaces. Returns Decoded data, or empty string, if there was not enough data for accurate detection See also flush() |
|
Returns QTextDecoder for detected encoding |
|
Convenience method. Returns mime name of detected encoding |
|
|
Check if we are really utf8. Taken from kate Returns true if current encoding is utf8 and the text cannot be in this encoding Please somebody read http://de.wikipedia.org/wiki/UTF-8 and check this code... |
|
Convenience method to be used with decodeForHtml. Flushes buffer. See also decodeForHtml() |
|
|
|
This nice method will kill all 0 bytes (or double bytes) and remember if this was a binary or not ;) |
|
Takes lang name _after_ it were i18n()'ed |
|
|
Returns true if specified encoding was recognized |
|
None | - | ||
SemiautomaticDetection | - | ||
Arabic | - | ||
Baltic | - | ||
CentralEuropean | - | ||
ChineseSimplified | - | ||
ChineseTraditional | - | ||
Cyrillic | - | ||
Greek | - | ||
Hebrew | - | ||
Japanese | - | ||
Korean | - | ||
NorthernSaami | - | ||
SouthEasternEurope | - | ||
Thai | - | ||
Turkish | - | ||
Unicode | - | ||
WesternEuropean | - |
DefaultEncoding | - | ||
AutoDetectedEncoding | - | ||
BOM | - | ||
EncodingFromXMLHeader | - | ||
EncodingFromMetaTag | - | ||
EncodingFromHTTPHeader | - | ||
UserChosenEncoding | - |