summaryrefslogtreecommitdiffabout
path: root/libkdepim
Side-by-side diff
Diffstat (limited to 'libkdepim') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index a663427..28af135 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -933,12 +933,12 @@ void KServerSocket::send_file()
}
mSyncActionDialog->setCaption( i18n("Sending file...") );
QTextStream ts( &file );
- ts.setCodec( QTextCodec::codecForName("utf8") );
+ ts.setEncoding( QTextStream::Latin1 );
+
QTextStream os( mSocket );
- os.setCodec( QTextCodec::codecForName("utf8") );
- //os.setEncoding( QTextStream::UnicodeUTF8 );
+ os.setEncoding( QTextStream::Latin1 );
while ( ! ts.atEnd() ) {
os << ts.readLine() << "\n";
}
//os << ts.read();
@@ -989,9 +989,9 @@ void KServerSocket::readBackFileFromSocket()
}
// mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1));
QTextStream ts ( &file );
- ts.setCodec( QTextCodec::codecForName("utf8") );
+ ts.setEncoding( QTextStream::Latin1 );
mSyncActionDialog->setCaption( i18n("Writing file to disk...") );
ts << piFileString;
mSocket->close();
if ( mSocket->state() == QSocket::Idle )
@@ -1027,9 +1027,9 @@ void KCommandSocket::readFile( QString fn )
mFileName = fn;
mFirst = true;
mSocket->connectToHost( mHost, mPort );
QTextStream os( mSocket );
- os.setEncoding( QTextStream::UnicodeUTF8 );
+ os.setEncoding( QTextStream::Latin1 );
os << "GET " << mPassWord << "\r\n";
mTimerSocket->start( 10000 );
}
@@ -1053,11 +1053,11 @@ void KCommandSocket::writeFileToSocket()
QTimer::singleShot( 10, this , SLOT ( deleteSocket()));
return ;
}
QTextStream ts2( &file2 );
- ts2.setCodec( QTextCodec::codecForName("utf8") );
+ ts2.setEncoding( QTextStream::Latin1 );
QTextStream os2( mSocket );
- os2.setCodec( QTextCodec::codecForName("utf8") );
+ os2.setEncoding( QTextStream::Latin1 );
os2 << "PUT " << mPassWord << "\r\n";;
while ( ! ts2.atEnd() ) {
os2 << ts2.readLine() << "\n";
}
@@ -1074,9 +1074,9 @@ void KCommandSocket::sendStop()
connect( mSocket, SIGNAL(delayedCloseFinished ()), this, SLOT(deleteSocket()) );
}
mSocket->connectToHost( mHost, mPort );
QTextStream os2( mSocket );
- os2.setCodec( QTextCodec::codecForName("utf8") );
+ os2.setEncoding( QTextStream::Latin1 );
os2 << "STOP\r\n";
mSocket->close();
if ( mSocket->state() == QSocket::Idle )
QTimer::singleShot( 10, this , SLOT ( deleteSocket()));
@@ -1119,9 +1119,9 @@ void KCommandSocket::readFileFromSocket()
}
// mView->setLoadedFileVersion(QDateTime::currentDateTime().addSecs( -1));
QTextStream ts ( &file );
- ts.setCodec( QTextCodec::codecForName("utf8") );
+ ts.setEncoding( QTextStream::Latin1 );
ts << mFileString;
file.close();
mFileString = "";
mRetVal = successR;