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
|
# recreate the project.properties
|
||||||
with io.open(project_fn, 'w', encoding='utf-8') as fd:
|
with io.open(project_fn, 'w', encoding='utf-8') as fd:
|
||||||
try:
|
try:
|
||||||
fd.writelines((line.encode('utf-8') for line in content))
|
fd.writelines((line.decode('utf-8') for line in content))
|
||||||
except:
|
except:
|
||||||
fd.writelines(content)
|
fd.writelines(content)
|
||||||
if not content[-1].endswith(u'\n'):
|
if not content[-1].endswith(u'\n'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue