X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcipher.cpp;h=a8232a3c1fc29b338fb214d22aa823398e2c9f0f;hp=7d1fe46a5e7be506d06310e188404bab8c8b8253;hb=90803b4288736e6c53d50eeb4fbbe2525be968c3;hpb=8b5ecd226f9208af3074b33d3b7cf5e14f55b138 diff --git a/src/core/cipher.cpp b/src/core/cipher.cpp index 7d1fe46a..a8232a3c 100644 --- a/src/core/cipher.cpp +++ b/src/core/cipher.cpp @@ -429,13 +429,13 @@ QByteArray Cipher::byteToB64(QByteArray text) right += v; for (int i = 0; i < 6; i++) { - encoded.append(base64.at(right & 0x3F).toAscii()); + encoded.append(base64.at(right & 0x3F).toLatin1()); right = right >> 6; } - //TODO make sure the .toascii doesn't break anything + //TODO make sure the .toLatin1 doesn't break anything for (int i = 0; i < 6; i++) { - encoded.append(base64.at(left & 0x3F).toAscii()); + encoded.append(base64.at(left & 0x3F).toLatin1()); left = left >> 6; } }