kivy/python-for-android — pull request #180 by satels (2013-12-03 22:56:35+00:00)
Title: Fix UnicodeDecodeError on build.py

Fix this:

./build.py --dir "$build_dir" --name "Интеграл по-шагам" --package "org.myapp.$service" --version "1.0.0" --orientation "portrait" --icon "$build_dir/media/$service.png" debug installd

Traceback (most recent call last):
File "./build.py", line 408, in
make_package(args)
File "./build.py", line 272, in make_package
versioned_name=versioned_name)
File "./build.py", line 67, in render
text = template.render(**kwargs)
File "buildlib/jinja2.egg/jinja2/environment.py", line 868, in render
return self.environment.handle_exception(exc_info, True)
File "./templates/build.xml", line 2, in top-level template code

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

and

Traceback (most recent call last):
File "./build.py", line 408, in
make_package(args)
File "./build.py", line 280, in make_package
args=args)
File "./build.py", line 67, in render
text = template.render(**kwargs)
File "buildlib/jinja2.egg/jinja2/environment.py", line 868, in render
return self.environment.handle_exception(exc_info, True)
File "./templates/strings.xml", line 4, in top-level template code
{{args.icon_name}}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)