Lines 113-119
Link Here
|
113 |
} else { |
113 |
} else { |
114 |
s[0] = 0; // cut string |
114 |
s[0] = 0; // cut string |
115 |
|
115 |
|
116 |
name = QString::fromUtf8(line); |
116 |
name = QString::fromLocal8Bit(line); |
117 |
|
117 |
|
118 |
if (target->subscribed.contains(name)) { |
118 |
if (target->subscribed.contains(name)) { |
119 |
target->subscribed.remove(name); // group names are unique, we wont find it again anyway... |
119 |
target->subscribed.remove(name); // group names are unique, we wont find it again anyway... |
Lines 182-188
Link Here
|
182 |
s++; |
182 |
s++; |
183 |
while (*s == ' ' || *s == '\t') s++; // go on to the description |
183 |
while (*s == ' ' || *s == '\t') s++; // go on to the description |
184 |
|
184 |
|
185 |
name = QString::fromUtf8(line); |
185 |
name = QString::fromLocal8Bit(line); |
186 |
if (target->codecForDescriptions) // some countries use local 8 bit characters in the tag line |
186 |
if (target->codecForDescriptions) // some countries use local 8 bit characters in the tag line |
187 |
description = target->codecForDescriptions->toUnicode(s); |
187 |
description = target->codecForDescriptions->toUnicode(s); |
188 |
else |
188 |
else |
Lines 248-254
Link Here
|
248 |
#endif |
248 |
#endif |
249 |
} else { |
249 |
} else { |
250 |
s[0] = 0; // cut string |
250 |
s[0] = 0; // cut string |
251 |
name = QString::fromUtf8(line); |
251 |
name = QString::fromLocal8Bit(line); |
252 |
|
252 |
|
253 |
while (s[1]!=0) s++; // the last character determines the moderation status |
253 |
while (s[1]!=0) s++; // the last character determines the moderation status |
254 |
switch (s[0]) { |
254 |
switch (s[0]) { |
Lines 284-290
Link Here
|
284 |
int rep; |
284 |
int rep; |
285 |
|
285 |
|
286 |
for (KNGroupInfo *group=tmpList.first(); group; group=tmpList.next()) { |
286 |
for (KNGroupInfo *group=tmpList.first(); group; group=tmpList.next()) { |
287 |
if (!sendCommand(cmd+group->name.utf8(),rep)) |
287 |
if (!sendCommand(cmd+group->name.local8Bit(),rep)) |
288 |
return; |
288 |
return; |
289 |
if (rep != 215) // 215 informations follows |
289 |
if (rep != 215) // 215 informations follows |
290 |
break; |
290 |
break; |
Lines 339-345
Link Here
|
339 |
.arg(account.server()).arg(target->groupname()); |
339 |
.arg(account.server()).arg(target->groupname()); |
340 |
|
340 |
|
341 |
cmd="GROUP "; |
341 |
cmd="GROUP "; |
342 |
cmd+=target->groupname().utf8(); |
342 |
cmd+=target->groupname().local8Bit(); |
343 |
if (!sendCommandWCheck(cmd,211)) { // 211 n f l s group selected |
343 |
if (!sendCommandWCheck(cmd,211)) { // 211 n f l s group selected |
344 |
return; |
344 |
return; |
345 |
} |
345 |
} |
Lines 458-464
Link Here
|
458 |
QString groupName = static_cast<KNGroup*>(target->collection())->groupname(); |
458 |
QString groupName = static_cast<KNGroup*>(target->collection())->groupname(); |
459 |
if (currentGroup != groupName) { |
459 |
if (currentGroup != groupName) { |
460 |
cmd="GROUP "; |
460 |
cmd="GROUP "; |
461 |
cmd+=groupName.utf8(); |
461 |
cmd+=groupName.local8Bit(); |
462 |
if (!sendCommandWCheck(cmd,211)) // 211 n f l s group selected |
462 |
if (!sendCommandWCheck(cmd,211)) // 211 n f l s group selected |
463 |
return; |
463 |
return; |
464 |
currentGroup = groupName; |
464 |
currentGroup = groupName; |