Marcus von Appen  committed cc4312f

- fixed issue #54: text input is correctly converted for the text entry

  • Participants
  • Parent commits 799239c

Comments (0)

Files changed (1)

File sdl2/ext/

 """User interface elements."""
-from .compat import isiterable
+from .compat import isiterable, stringify
 from .ebs import System, World
 from .events import EventHandler
 from .sprite import Sprite
         passed component and passes the event on to that component."""
         if self._activecomponent == component:
             if (component.uitype & TEXTENTRY):
-                component.text += event.text.text
+                component.text += stringify(event.text.text, "utf-8")
     def mousemotion(self, component, event):