From: Manuel Nickschas Date: Fri, 6 Jul 2007 16:48:34 +0000 (+0000) Subject: Added a function decodeString() to util.{h|cpp} that takes a QByteArray with raw... X-Git-Tag: 0.1.0~185 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=8c3b7e4773e9f20ad9ea264cbaafaa52485bdf86;hp=8c3b7e4773e9f20ad9ea264cbaafaa52485bdf86 Added a function decodeString() to util.{h|cpp} that takes a QByteArray with raw text data and decodes it using a specified text codec. Except the input data is utf8, in which case this function detects utf8 and takes appropriate measures to get a correctly decoded QString regardless of the specified coded. I'd like to use this function for decoding incoming server messages, but we need to change things quite a bit in the Server to do this correctly. See my comment in server.cpp. ---