summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-07 13:22:40 (UTC)
committer zautrix <zautrix>2004-10-07 13:22:40 (UTC)
commitd14d61ebb2e41329465883a0dfce719d69fc3f3e (patch) (side-by-side diff)
tree39330d3848e530f9ba8deac4086685674acdc839
parent826dc960353e47a60aba13916189c45ef3392c1e (diff)
downloadkdepimpi-d14d61ebb2e41329465883a0dfce719d69fc3f3e.zip
kdepimpi-d14d61ebb2e41329465883a0dfce719d69fc3f3e.tar.gz
kdepimpi-d14d61ebb2e41329465883a0dfce719d69fc3f3e.tar.bz2
utf8 fixes
Diffstat (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
@@ -936,6 +936,6 @@ void KServerSocket::send_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() ) {
@@ -992,3 +992,3 @@ void KServerSocket::readBackFileFromSocket()
QTextStream ts ( &file );
- ts.setCodec( QTextCodec::codecForName("utf8") );
+ ts.setEncoding( QTextStream::Latin1 );
mSyncActionDialog->setCaption( i18n("Writing file to disk...") );
@@ -1030,3 +1030,3 @@ void KCommandSocket::readFile( QString fn )
QTextStream os( mSocket );
- os.setEncoding( QTextStream::UnicodeUTF8 );
+ os.setEncoding( QTextStream::Latin1 );
os << "GET " << mPassWord << "\r\n";
@@ -1056,5 +1056,5 @@ void KCommandSocket::writeFileToSocket()
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";;
@@ -1077,3 +1077,3 @@ void KCommandSocket::sendStop()
QTextStream os2( mSocket );
- os2.setCodec( QTextCodec::codecForName("utf8") );
+ os2.setEncoding( QTextStream::Latin1 );
os2 << "STOP\r\n";
@@ -1122,3 +1122,3 @@ void KCommandSocket::readFileFromSocket()
QTextStream ts ( &file );
- ts.setCodec( QTextCodec::codecForName("utf8") );
+ ts.setEncoding( QTextStream::Latin1 );
ts << mFileString;