class KEncodingDetector


Module kdecore
Namespace
Class KEncodingDetector
Inherits
Provides encoding detection capabilities.

Searches for encoding declaration inside raw data -- meta and xml tags. In the case it can't find it, uses heuristics for specified language.

If it finds unicode BOM marks, it changes encoding regardless of what the user has told

Intended lifetime of the object: one instance per document.

Typical use:

QByteArray data;
...
KEncodingDetector detector;
detector.setAutoDetectLanguage(KEncodingDetector.Cyrillic);
QString out=detector.decode(data);

Do not mix decode() with decodeWithBuffering()

Guess encoding of char array



enums

enum details

methods