-rw-r--r-- | libkdepim/ksyncmanager.cpp | 18 |
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 | |||
@@ -936,6 +936,6 @@ void KServerSocket::send_file() | |||
936 | QTextStream ts( &file ); | 936 | QTextStream ts( &file ); |
937 | ts.setCodec( QTextCodec::codecForName("utf8") ); | 937 | ts.setEncoding( QTextStream::Latin1 ); |
938 | |||
938 | QTextStream os( mSocket ); | 939 | QTextStream os( mSocket ); |
939 | os.setCodec( QTextCodec::codecForName("utf8") ); | 940 | os.setEncoding( QTextStream::Latin1 ); |
940 | //os.setEncoding( QTextStream::UnicodeUTF8 ); | ||
941 | while ( ! ts.atEnd() ) { | 941 | while ( ! ts.atEnd() ) { |
@@ -992,3 +992,3 @@ void KServerSocket::readBackFileFromSocket() | |||
992 | QTextStream ts ( &file ); | 992 | QTextStream ts ( &file ); |
993 | ts.setCodec( QTextCodec::codecForName("utf8") ); | 993 | ts.setEncoding( QTextStream::Latin1 ); |
994 | mSyncActionDialog->setCaption( i18n("Writing file to disk...") ); | 994 | mSyncActionDialog->setCaption( i18n("Writing file to disk...") ); |
@@ -1030,3 +1030,3 @@ void KCommandSocket::readFile( QString fn ) | |||
1030 | QTextStream os( mSocket ); | 1030 | QTextStream os( mSocket ); |
1031 | os.setEncoding( QTextStream::UnicodeUTF8 ); | 1031 | os.setEncoding( QTextStream::Latin1 ); |
1032 | os << "GET " << mPassWord << "\r\n"; | 1032 | os << "GET " << mPassWord << "\r\n"; |
@@ -1056,5 +1056,5 @@ void KCommandSocket::writeFileToSocket() | |||
1056 | QTextStream ts2( &file2 ); | 1056 | QTextStream ts2( &file2 ); |
1057 | ts2.setCodec( QTextCodec::codecForName("utf8") ); | 1057 | ts2.setEncoding( QTextStream::Latin1 ); |
1058 | QTextStream os2( mSocket ); | 1058 | QTextStream os2( mSocket ); |
1059 | os2.setCodec( QTextCodec::codecForName("utf8") ); | 1059 | os2.setEncoding( QTextStream::Latin1 ); |
1060 | os2 << "PUT " << mPassWord << "\r\n";; | 1060 | os2 << "PUT " << mPassWord << "\r\n";; |
@@ -1077,3 +1077,3 @@ void KCommandSocket::sendStop() | |||
1077 | QTextStream os2( mSocket ); | 1077 | QTextStream os2( mSocket ); |
1078 | os2.setCodec( QTextCodec::codecForName("utf8") ); | 1078 | os2.setEncoding( QTextStream::Latin1 ); |
1079 | os2 << "STOP\r\n"; | 1079 | os2 << "STOP\r\n"; |
@@ -1122,3 +1122,3 @@ void KCommandSocket::readFileFromSocket() | |||
1122 | QTextStream ts ( &file ); | 1122 | QTextStream ts ( &file ); |
1123 | ts.setCodec( QTextCodec::codecForName("utf8") ); | 1123 | ts.setEncoding( QTextStream::Latin1 ); |
1124 | ts << mFileString; | 1124 | ts << mFileString; |