5f448c
diff -up nose-1.3.7/nose/plugins/doctests.py.readunicode nose-1.3.7/nose/plugins/doctests.py
5f448c
--- nose-1.3.7/nose/plugins/doctests.py.readunicode	2015-04-04 02:52:52.000000000 -0600
5f448c
+++ nose-1.3.7/nose/plugins/doctests.py	2016-11-15 14:24:54.298239018 -0700
5f448c
@@ -49,6 +49,7 @@ test.
5f448c
 """
5f448c
 from __future__ import generators
5f448c
 
5f448c
+import codecs
5f448c
 import logging
5f448c
 import os
5f448c
 import sys
5f448c
@@ -259,7 +260,7 @@ class Doctest(Plugin):
5f448c
         """
5f448c
         if self.extension and anyp(filename.endswith, self.extension):
5f448c
             name = os.path.basename(filename)
5f448c
-            dh = open(filename)
5f448c
+            dh = codecs.open(filename, encoding='utf-8')
5f448c
             try:
5f448c
                 doc = dh.read()
5f448c
             finally: