diff --git a/calculate/lib/cl_template.py b/calculate/lib/cl_template.py index 7928b95..66391bb 100644 --- a/calculate/lib/cl_template.py +++ b/calculate/lib/cl_template.py @@ -5505,8 +5505,8 @@ gettext -d cl_template "$*" def fileIsUtf(self, fileName): """Проверяет файл на кодировку UTF-8""" if os.path.isfile(fileName): - FD = open(os.path.abspath(fileName)) - newTemplate = FD.read() + FD = open(os.path.abspath(fileName),'r') + newTemplate = FD.read(1)+FD.read() FD.close() try: newTemplate.decode("UTF-8")