[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 82021] Lack of support for codepages (Chinese)
From:       Sashmit Bhaduri <smt () vfemail ! net>
Date:       2004-05-23 3:47:15
Message-ID: 20040523034715.31832.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=82021      
smt vfemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From smt vfemail net  2004-05-23 05:47 -------
CVS commit by sashmit: 

Save and Read archive as Unicode

CCMAIL: 82021-done bugs kde org


  M +4 -2      archive.cpp   1.9


--- kdenonbeta/akregator/src/archive.cpp  #1.8:1.9
 @ -55,9 +55,9  @ void Archive::load(Feed *f)
     
     if ( !file.open( IO_ReadOnly ) ) {
-        kdDebug() << "load error"<<endl;
         return;
     }
     
     QTextStream stream( &file );
+    stream.setEncoding(QTextStream::Unicode);
     QString data=stream.read();
     QDomDocument doc;
 @ -101,7 +101,9  @ void Archive::save(Feed *f)
     
     QTextStream stream( &file );
+    stream.setEncoding(QTextStream::Unicode);
     
     QDomDocument doc;
-    doc.createProcessingInstruction("xml","version=\"1.0\" encoding=\"UTF-8\"");
+    QDomProcessingInstruction z = \
doc.createProcessingInstruction("xml","version=\"1.0\" encoding=\"UTF-8\""); +    \
doc.appendChild( z );  
     QDomElement root = doc.createElement( "rss" );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic