From cb41f187ea1cfbb050d3a6892547a561cadbc6a4 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 22 Dec 2018 09:36:43 -0800 Subject: Fix encoding cookie to use encoding "utf-8" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The all caps "UTF-8" causes warnings or errors in some editors. "utf-8" is more widely recognized. For example, when opening files in Emacs, I see: > Warning (mule): Invalid coding system ‘UTF-8’ is specified > for the current buffer/file by the :coding tag. > It is highly recommended to fix it before writing to a file. > Really proceed with writing? (yes or no) I'm then promped before saving. The CPython source code uses the lowecase form. --- examples/holaMundo.py | 2 +- unitTests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/holaMundo.py b/examples/holaMundo.py index 6ae2cc5..47ab6bb 100644 --- a/examples/holaMundo.py +++ b/examples/holaMundo.py @@ -1,4 +1,4 @@ -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- # escrito por Marco Alfonso, 2004 Noviembre diff --git a/unitTests.py b/unitTests.py index b292694..0845451 100644 --- a/unitTests.py +++ b/unitTests.py @@ -1,4 +1,4 @@ -# -*- coding: UTF-8 -*- +# -*- coding: utf-8 -*- # # unitTests.py # -- cgit v1.2.1