Added a function decodeString() to util.{h|cpp} that takes a QByteArray with raw...
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Jul 2007 16:48:34 +0000 (16:48 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Jul 2007 16:48:34 +0000 (16:48 +0000)
commit8c3b7e4773e9f20ad9ea264cbaafaa52485bdf86
tree2622596e67d5d6cf7e7b02ba742af8ec40832285
parent0ac9ce4d7cf768d13993d6aa1d6b791c4149a843
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.
src/CMakeLists.txt
src/common/util.cpp
src/common/util.h
src/core/server.cpp
src/core/server.h
src/qtgui/mainwin.cpp