fix for properly displaying unicode characters to sys.stdout (known python issue)

This commit is contained in:
Miroslav Stampar 2010-05-28 13:32:36 +00:00
parent a3db3c03c1
commit 37590520c4

View File

@ -22,6 +22,8 @@ with sqlmap; if not, write to the Free Software Foundation, Inc., 51
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
import codecs
import locale
import os
import sys
import time
@ -30,6 +32,8 @@ import warnings
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
try:
import psyco
psyco.full()