mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-25 20:25:54 +01:00
Martin Tůma
310a113e25
Archlinux has started to use the Qt6 build, so to support the legacy East Asian encodings use the compat module rather than a "clean" but less functional fallback solution and hope there will be some replacement in Qt6 before the module gets dropped. Non-UTF XML files will however still not work.
21 lines
251 B
C++
21 lines
251 B
C++
#ifndef TEXTCODEC_H
|
|
#define TEXTCODEC_H
|
|
|
|
#include <QString>
|
|
|
|
class QTextCodec;
|
|
|
|
class TextCodec
|
|
{
|
|
public:
|
|
TextCodec();
|
|
TextCodec(int codepage);
|
|
|
|
QString toString(const QByteArray &ba) const;
|
|
|
|
private:
|
|
QTextCodec *_codec;
|
|
};
|
|
|
|
#endif // TEXTCODEC_H
|