1. Dusty Phillips
  2. kivy-catalog

Commits

Dusty Phillips  committed 44577c4

Encode text to UTF8 because the parser chokes

  • Participants
  • Parent commits 174dfb4
  • Branches master

Comments (0)

Files changed (1)

File main.py

View file
  • Ignore whitespace
         syntax, show a nice popup.'''
         if self.kv_container:
             try:
-                parser = Parser(content=self.language_box.text)
+                parser = Parser(content=self.language_box.text.encode('utf8'))
                 self.kv_container.clear_widgets()
                 widget = Factory.get(parser.root.name)()
                 Builder._apply_rule(widget, parser.root, parser.root)