kivy/kivy — Issue #364: .kv file encoding issue
Author: bamanow
Created: 2012-01-12 20:02:49+00:00
State: open

My setup is Win7 x64 Ultimate with latest version of Kivy. I use
Notepad++ for python development.
Now Notepad++ by default is set to use UTF-8 encoding. When I save .kv
files in this encoding
parser fails. But when I encode it in ANSI there is no problem.
I know it is not a very big problem. But it annoys a little.
Is it by design?

Parser says:
'Invalid data after declaration'
kivy.lang.ParserError: File "", line 0:

to reproduce:
go to \Kivy-1.0.9-w32\kivy\examples\guide\designwithkv
replace controller.kv file with exactly same file, BUT with utf-8 encoding (with BOM)
now run main.py
voila :)
error!