diff --git a/make-lrc.py b/make-lrc.py
index d4fb78db54d071ea23d6895a4fa53e1a3d0ab400..c3b3b4aa8a23a55e7a0b01a732feef53af919832 100644
--- a/make-lrc.py
+++ b/make-lrc.py
@@ -73,7 +73,7 @@ def getVSEnv(arch='x64', platform='', version=''):
                          shell=True,
                          stdout=subprocess.PIPE)
     stdout, _ = p.communicate()
-    out = stdout.decode('utf-8').split("\r\n")[5:-1]
+    out = stdout.decode('utf-8', 'ignore').split("\r\n")[5:-1]
     return dict(s.split('=', 1) for s in out)