From 59078bb1b8884b6faa1d35a6627e0156e1281316 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 20 Aug 2012 10:05:13 +0200 Subject: [PATCH] Fix for an Issue #154 --- lib/core/target.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/target.py b/lib/core/target.py index e721a66c2..95edc5817 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -399,7 +399,8 @@ def __createTargetDirs(): conf.outputPath = tempDir with open(os.path.join(conf.outputPath, "target.txt"), "w+") as f: - f.write(kb.originalUrls.get(conf.url) or conf.url or conf.hostname) + _ = kb.originalUrls.get(conf.url) or conf.url or conf.hostname + f.write(_.encode(UNICODE_ENCODING)) __createDumpDir() __createFilesDir()