Fix encoding for Project Generator

This commit is contained in:
Ivan Kravets
2015-04-24 17:17:24 +01:00
parent 8b8d5c360c
commit c14b436aec
3 changed files with 3 additions and 4 deletions

View File

@ -51,8 +51,7 @@ class ProjectGenerator(object):
for tpl_path in self.get_tpls():
file_name = basename(tpl_path)[:-4]
with open(join(self.project_dir, file_name), "w") as f:
print tpl_path
f.write(self._render_tpl(tpl_path))
f.write(self._render_tpl(tpl_path).encode("utf8"))
def _render_tpl(self, tpl_path):
content = ""

View File

@ -26,4 +26,4 @@
<Filter>Source Files\src</Filter>
</None>
</ItemGroup>
</Project>
</Project>

View File

@ -59,4 +59,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>