From 13f084bd00b789a75647d3b7b8e5f53c6014e62a Mon Sep 17 00:00:00 2001 From: karellodewijk Date: Tue, 12 Nov 2019 16:43:18 +0100 Subject: [PATCH] Fixed bug for non-ascii javascript --- compressjs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compressjs.sh b/compressjs.sh index b69fc2f..ef65ff6 100755 --- a/compressjs.sh +++ b/compressjs.sh @@ -72,7 +72,7 @@ else: filename = "'${NEWFILE}'" with open(filename, "w") as f: - f.write(data["compiledCode"]) + f.write(data["compiledCode"].encode("utf-8")) print "\nBuild file %s created.\n" % filename -' $@ \ No newline at end of file +' $@