1.1 --- a/python.editor/src/org/netbeans/modules/python/editor/templates/executable_module.py.ftl Sun Sep 25 16:45:37 2016 +0200
1.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/templates/executable_module.py.ftl Sun Sep 25 16:46:29 2016 +0200
1.3 @@ -4,7 +4,7 @@
1.4 #!/usr/bin/env python2
1.5 </#if>
1.6 <#if encoding??>
1.7 -#encoding: ${encoding}
1.8 +# -*- coding: utf-8 -*-
1.9 </#if>
1.10
1.11 <#-- This is a FreeMarker template -->
1.12 @@ -19,4 +19,4 @@
1.13 print("Hello World")
1.14 <#else>
1.15 print "Hello World"
1.16 -</#if>
1.17 \ No newline at end of file
1.18 +</#if>
2.1 --- a/python.editor/src/org/netbeans/modules/python/editor/templates/module.py.ftl Sun Sep 25 16:45:37 2016 +0200
2.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/templates/module.py.ftl Sun Sep 25 16:46:29 2016 +0200
2.3 @@ -1,4 +1,8 @@
2.4 <#-- This is a FreeMarker template -->
2.5 +<#if encoding??>
2.6 +# -*- coding: utf-8 -*-
2.7 +</#if>
2.8 +
2.9 <#-- You can change the contents of the license inserted into
2.10 # each template by opening Tools | Templates and editing
2.11 # Licenses | Default License -->
3.1 --- a/python.editor/src/org/netbeans/modules/python/editor/templates/setup.py.ftl Sun Sep 25 16:45:37 2016 +0200
3.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/templates/setup.py.ftl Sun Sep 25 16:46:29 2016 +0200
3.3 @@ -1,3 +1,7 @@
3.4 +<#if encoding??>
3.5 +# -*- coding: utf-8 -*-
3.6 +
3.7 +</#if>
3.8 from setuptools import setup,find_packages
3.9
3.10 setup (
3.11 @@ -21,4 +25,4 @@
3.12 # could also include long_description, download_url, classifiers, etc.
3.13
3.14
3.15 -)
3.16 \ No newline at end of file
3.17 +)
4.1 --- a/python.editor/src/org/netbeans/modules/python/editor/templates/unittest.py.ftl Sun Sep 25 16:45:37 2016 +0200
4.2 +++ b/python.editor/src/org/netbeans/modules/python/editor/templates/unittest.py.ftl Sun Sep 25 16:46:29 2016 +0200
4.3 @@ -1,4 +1,8 @@
4.4 <#-- This is a FreeMarker template -->
4.5 +<#if encoding??>
4.6 +# -*- coding: utf-8 -*-
4.7 +
4.8 +</#if>
4.9 <#-- You can change the contents of the license inserted into
4.10 # each template by opening Tools | Templates and editing
4.11 # Licenses | Default License -->