View Single Post
Old 07-23-2020, 09:45 AM   #486
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@capink: The search in the webpage tab is working now in Python3. But, the page source is displayed like:

Code:
b'<html class="dark prog ads" lang="en">\n <head>\n  \n  <base href="https://www.fantasticfiction.com/">\n  <title>\n   Joe Abercrombie\n  </title>\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n </head>\n <body>\n  <div class="main" id="mainframe">\n   \n
From a quick test, line 529 in tab_webpage.py needs to be changed to:
Code:
self.source_tedit.setPlainText(unicode(raw, 'utf-8'))
That seems to work in both Python 3 and the released version.
davidfor is offline   Reply With Quote