Scrapy, a fast high-level web crawling & scraping framework for Python.
Set `FEED_EXPORT_ENCODING='utf-8'` in the default template
Laerte Pereira8270df754d5c
diff --git a/docs/topics/feed-exports.rst b/docs/topics/feed-exports.rstindex a620e2c04..7b662f34d 100644--- a/docs/topics/feed-exports.rst+++ b/docs/topics/feed-exports.rst@@ -515,6 +515,11 @@ which uses safe numeric encoding (``\uXXXX`` sequences) for historic reasons.Use ``utf-8`` if you want UTF-8 for JSON too.+.. versionchanged:: 2.8+ The :command:`startproject` command now sets this setting to+ ``utf-8`` in the generated+ ``settings.py`` file.+.. setting:: FEED_EXPORT_FIELDSFEED_EXPORT_FIELDSdiff --git a/scrapy/templates/project/module/settings.py.tmpl b/scrapy/templates/project/module/settings.py.tmplindex bbf60982c..2f6df5abc 100644--- a/scrapy/templates/project/module/settings.py.tmpl+++ b/scrapy/templates/project/module/settings.py.tmpl@@ -90,3 +90,4 @@ ROBOTSTXT_OBEY = True# Set settings whose default value is deprecated to a future-proof valueREQUEST_FINGERPRINTER_IMPLEMENTATION = '2.7'TWISTED_REACTOR = 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'+FEED_EXPORT_ENCODING = 'utf-8'