48
50
return QString("#&!+").contains(str[0]);
51
64
QString decodeString(const QByteArray &input, QTextCodec *codec) {
52
65
// First, we check if it's utf8. It is very improbable to encounter a string that looks like
53
66
// valid utf8, but in fact is not. This means that if the input string passes as valid utf8, it