Kivy- kv language VKeyboard
<p>I'd like to add VKeyboard widget for my app written using Kivy 1.9.0. I using Python 2.7.12. Is there a way to add this widget to application via kv language? Because while trying method below there is bug:  'ValueError: No JSON object could be decoded'</p>

<pre><code>        Button:
            background_color:1,0,0,0.5
            text:'Next word'
            size_hint:.5,.2
            font_size:25
            pos_hint:{'center_x':.5}
            on_press:root.word_dict()

        VKeyboard:
            layout:'layout.json'
</code></pre>

<p><strong>layout.json</strong></p>

<pre><code> { "title":"KeyboardPinyin", "description":"Keyboard using for writing pinyin characters", "cols":5, "rows":3, "normal_1":[ ["Ä","Ä","Ä",1], ["Ä","Ä","Ä",1], ["Ä«","Ä«","Ä«",1], ["Å","Å","Å",1], ["Å«","Å«","Å«",1] ], "normal_2": [ ["Ã¡","Ã¡","Ã¡",1], ["Ã©","Ã©","Ã©",1], ["Ã­","Ã­","Ã­",1], ["Ã³","Ã³","Ã³",1], ["Ãº","Ãº","Ãº",1] ], "normal_3": [ ["Ç","Ç","Ç",1], ["Ä","Ä","Ä",1], ["Ç","Ç","Ç",1], ["Ç","Ç","Ç",1], ["Ç","Ç","Ç",1] ], "normal_4": [ ["Ã ","Ã ","Ã ",1], ["Ã¨","Ã¨","Ã¨",1], ["Ã¬","Ã¬","Ã¬",1], ["Ã²","Ã²","Ã²",1], ["Ã¹","Ã¹","Ã¹",1] ] }
</code></pre>

<pre><code>Traceback (most recent call last):
  File "C:/Users/joran/.PyCharm50/config/scratches/scratch_33", line 3, in &lt;module&gt;
    data = json.load(open(os.path.expanduser("~/layout1.json")))
  File "C:\Python27\lib\json\__init__.py", line 290, in load
    **kw)
  File "C:\Python27\lib\json\__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "C:\Python27\lib\json\decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 0: unexpected end of data
</code></pre>

<p>you cannot it tries to decode the input using utf8 ... you have non-utf8 characters in your json</p>

<p>you should instead use the unicode representation <code>"\u00e0"</code> etc  (or you must somehow specify the character encoding of the json ... I am not sure how you might do that offhand)</p>

python widget kivy virtual-keyboard