From 65ec715828d72c647df013c9f2e719606355563c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 25 Oct 2012 00:03:00 +0200 Subject: [PATCH] Fix for an Issue #218 --- lib/core/wordlist.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core/wordlist.py b/lib/core/wordlist.py index 723fde1ac..46d66036e 100644 --- a/lib/core/wordlist.py +++ b/lib/core/wordlist.py @@ -9,6 +9,7 @@ import os import zipfile from lib.core.exception import sqlmapDataException +from lib.core.settings import UNICODE_ENCODING class Wordlist: """ @@ -63,6 +64,10 @@ class Wordlist: except StopIteration: self.adjust() retVal = self.iter.next().rstrip() + try: + retVal = retVal.decode(UNICODE_ENCODING) + except UnicodeDecodeError: + continue if not self.proc_count or self.counter % self.proc_count == self.proc_id: break return retVal