encoding - Regarding Python IDLE Unicode with kivy -


i dealing application needs sort of korean language. had set font root still encoding error when run idle.

how fix it? ex39.py code

from kivy.uix.widget import widget kivy.uix.behaviors import dragbehavior kivy.app import app kivy.properties import stringproperty  class horse(dragbehavior,widget):     horse_state=stringproperty('not dragging')     def on_touch_move(self,touch):         tx,ty = touch.pos         sx,sy = self.pos         if sx+52>=tx>sx+36 , sy+53>=ty>sy+28:             self.horse_state = 'dragging'         return super(horse, self).on_touch_move(touch)  class ex39(widget):     pass  class ex39app(app):     def build(self):         return ex39()  if __name__=='__main__':     ex39app().run() 

ex39.kv file code

<horse>:     size: 100,74     drag_rectangle: self.x+36, self.y+28, 16, 25     drag_timeout: 10000000     drag_distance: 0     on_touch_up: self.horse_state = 'not dragging'     canvas:         rectangle:             pos: self.pos             size: self.size             source: 'horse.png'  <ex39>:     canvas:         color:             rgb: 1,1,1,1         rectangle:             size: root.width,root.height             pos: 0,0     label:         font_name: 'c:\python34\h2gtre.ttf'         pos: 300,root.top-100         text:             ('[size=32][color=cc8811]'             '음표의 길이 익히기'             '[/color][/size]')         markup: true     horse:         id: horse_id         pos: root.width/2.5,root.height/2     label:         pos: 300,100         text:             ('[size=32][color=cc8811]'+             horse_id.horse_state+             '[/color][/size]')         markup: true 

the error message : unicodedecodeerror: 'cp949' codec can't decode byte 0xec in position 608: illegal multibyte sequence


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -