Ensure that utf-8 is tested when importing fits

This commit is contained in:
blitzmann
2016-01-03 13:24:05 -05:00
parent ad738f7e7c
commit ef1228eb32

View File

@@ -867,7 +867,7 @@ class Fit(object):
if codec_found is None:
logger.warn("Unicode BOM not found in file %s.", path)
attempt_codecs = (defcodepage, "utf-16", "cp1252")
attempt_codecs = (defcodepage, "utf-8", "utf-16", "cp1252")
for page in attempt_codecs:
try:
logger.warn("Attempting to decode file %s using %s page.", path, page)