Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

support i18n by using utf-8 coding template files

Irhine86a60e2cfc3b
diff --git a/scrapy/templates/project/module/items.py.tmpl b/scrapy/templates/project/module/items.py.tmpl
index 1cd39bec0..a65825667 100644
--- a/scrapy/templates/project/module/items.py.tmpl
+++ b/scrapy/templates/project/module/items.py.tmpl
@@ -1,4 +1,4 @@
-#coding: utf-8
+# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
diff --git a/scrapy/templates/project/module/pipelines.py.tmpl b/scrapy/templates/project/module/pipelines.py.tmpl
index 0e6676209..e613becae 100644
--- a/scrapy/templates/project/module/pipelines.py.tmpl
+++ b/scrapy/templates/project/module/pipelines.py.tmpl
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
diff --git a/scrapy/templates/project/module/settings.py.tmpl b/scrapy/templates/project/module/settings.py.tmpl
index b90be8bc8..e9f1ba0e4 100644
--- a/scrapy/templates/project/module/settings.py.tmpl
+++ b/scrapy/templates/project/module/settings.py.tmpl
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
# Scrapy settings for $project_name project
#
# For simplicity, this file contains only the most important settings by