stc problems, wxPy2.6.0.0-unicode, GetText/Raw/UTF8

Hi,

win98, wxPy2600-unicode, Py241

I am stuck with the STC control in the unicode version.In my test
app, I have a STC control and a button that fetches the STC text
(method OnClick1).

I do not understand what is going on, when I type "asdf" in the STC and
click the button: types of the returned values and their lengthes.

    def OnClick1(self, event):
        print '>>> OnClick1'

        r = self.stc1.GetTextRaw()
        r1 = self.stc1.GetTextRangeRaw(0, self.stc1.GetLength())
        print 'r:', type(r), len(r), r
        print 'r1:', type(r1), len(r1), r1

        print '---'
        r = self.stc1.GetText()
        r1 = self.stc1.GetTextRange(0, self.stc1.GetLength())
        print 'r:', type(r), len(r), r
        print 'r1:', type(r1), len(r1), r1

        print '---'
        r = self.stc1.GetTextUTF8()
        r1 = self.stc1.GetTextRangeUTF8(0, self.stc1.GetLength())
        print 'r:', type(r), len(r), r
        print 'r1:', type(r1), len(r1), r1

Entering "asdf" and clicking yields:

OnClick1

r: <type 'str'> 3 asd
r1: <type 'str'> 4 asdf

···

---
r: <type 'unicode'> 4 asdf
r1: <type 'unicode'> 4 asdf
---
r: <type 'str'> 3 asd
r1: <type 'str'> 4 asdf

Jean-Michel Fauth, Switzerland.