From 67de46730f5ae2386ef250741935995095cbc93b Mon Sep 17 00:00:00 2001 From: Jiye Qian Date: Thu, 3 Aug 2017 23:34:55 +0800 Subject: [PATCH] Enhance compatibility With Anaconda3-4.4.0-Windows-x86_64 in Win 8 & 10, encoding name "utf8" will lead to error. We change the encoding name to "utf-8", it's OK. Very strange, we do not know why. --- labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelImg.py b/labelImg.py index c2ee979a..0b320de2 100755 --- a/labelImg.py +++ b/labelImg.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf8 -*- +# -*- coding: utf-8 -*- import codecs import os.path import re