Merge pull request #518 from jamalex/patch-1
Fix unicode coding error in android build target
This commit is contained in:
commit
4ab270f8fe
1 changed files with 1 additions and 1 deletions
|
@ -851,7 +851,7 @@ class TargetAndroid(Target):
|
|||
# recreate the project.properties
|
||||
with io.open(project_fn, 'w', encoding='utf-8') as fd:
|
||||
try:
|
||||
fd.writelines((line.encode('utf-8') for line in content))
|
||||
fd.writelines((line.decode('utf-8') for line in content))
|
||||
except:
|
||||
fd.writelines(content)
|
||||
if not content[-1].endswith(u'\n'):
|
||||
|
|
Loading…
Add table
Reference in a new issue