parameters: (self, text)
docstring: Replace the contents of the document with the UTF8 text given.
          Works 'natively' in a unicode build of wxPython, and will also
          work in an ansi build if the UTF8 text is compatible with the
          current encoding.
docstring_summary: Replace the contents of the document with the UTF8 text given.
          Works 'natively' in a unicode build of wxPython, and will also
          work in an ansi build if the UTF8 text is compatible with the
          current encoding.
docstring_tokens: Replace the contents of the document with the UTF8 text given . Works natively in a unicode build of wxPython and will also work in an ansi build if the UTF8 text is compatible with the current encoding .
function: def SetTextUTF8(self, text):
          """
          Replace the contents of the document with the UTF8 text given.
          Works 'natively' in a unicode build of wxPython, and will also
          work in an ansi build if the UTF8 text is compatible with the
          current encoding.
          """
          if not wx.USE_UNICODE:
              u = text.decode('utf-8')
              text = u.encode(wx.GetDefaultPyEncoding())
          self.SetTextRaw(text)
function_tokens: def SetTextUTF8 ( self , text ) : if not wx . USE_UNICODE : u = text . decode ( 'utf-8' ) text = u . encode ( wx . GetDefaultPyEncoding ( ) ) self . SetTextRaw ( text )