@@ -92,12 +92,12 @@ void EBook_CHM::close()
9292
9393QString EBook_CHM::title () const
9494{
95- return encodeWithCurrentCodec ( m_title );
95+ return encodeInternalWithCurrentCodec ( m_title );
9696}
9797
9898QUrl EBook_CHM::homeUrl () const
9999{
100- return pathToUrl ( encodeWithCurrentCodec ( m_home ) );
100+ return pathToUrl ( encodeInternalWithCurrentCodec ( m_home ) );
101101}
102102
103103bool EBook_CHM::hasFeature ( EBook::Feature code ) const
@@ -125,7 +125,7 @@ bool EBook_CHM::getTableOfContents( QList<EBookTocEntry>& toc ) const
125125 // Parse the plain text TOC
126126 QList< ParsedEntry > parsed;
127127
128- if ( !parseFileAndFillArray ( encodeWithCurrentCodec ( m_topicsFile ), parsed, false ) )
128+ if ( !parseFileAndFillArray ( encodeInternalWithCurrentCodec ( m_topicsFile ), parsed, false ) )
129129 return false ;
130130
131131 // Find out the root offset, and reduce the indent level to it
@@ -159,7 +159,7 @@ bool EBook_CHM::getIndex( QList<EBookIndexEntry>& index ) const
159159 // Parse the plain text index
160160 QList< ParsedEntry > parsed;
161161
162- if ( !parseFileAndFillArray ( encodeWithCurrentCodec ( m_indexFile ), parsed, true ) )
162+ if ( !parseFileAndFillArray ( encodeInternalWithCurrentCodec ( m_indexFile ), parsed, true ) )
163163 return false ;
164164
165165 // Find out the root offset, and reduce the indent level to it
@@ -950,11 +950,11 @@ void EBook_CHM::fillTopicsUrlMap()
950950 QUrl url = pathToUrl ( encodeInternalWithCurrentCodec ( ( const char * ) urlstr.data () + off_url ) );
951951
952952 /*
953- * Titles are extracted from the <title> field from html pages when compling the chm file, try with text codec .
953+ * Titles are extracted from the <title> field from html pages when compling the chm file.
954954 * These values are used in index search and index with multiple topics selection currently.
955955 */
956956 if ( off_title < ( unsigned int )strings.size () )
957- m_url2topics[url] = encodeWithCurrentCodec ( ( const char * ) strings.data () + off_title );
957+ m_url2topics[url] = encodeInternalWithCurrentCodec ( ( const char * ) strings.data () + off_title );
958958 else
959959 m_url2topics[url] = " Untitled" ;
960960 }
0 commit comments