Re: [PyQt] Troubles in return html text from QtextEdit

2008-10-10 Thread Phil Thompson
On Fri, 10 Oct 2008 22:13:20 +1100, "Min Li" <[EMAIL PROTECTED]> wrote: > Hi, everyone. > > I have some problem in store html text in a variable. This html text is > displayed in the QtextEdit. > > I try to use variable = str( QtextEdit.toHtml() ) to retrieve these html > text. > > However,Pytho

[PyQt] Troubles in return html text from QtextEdit

2008-10-10 Thread Min Li
Hi, everyone. I have some problem in store html text in a variable. This html text is displayed in the QtextEdit. I try to use variable = str( QtextEdit.toHtml() ) to retrieve these html text. However,Python Shell shows: Traceback (most recent call last): variable= str(self.toHtml()) UnicodeEnc