Changeset 1107

Show
Ignore:
Timestamp:
07/25/07 03:04:42 (6 years ago)
Author:
boltrix
Message:

Converting nmap output to utf-8 before seting it to the text buffer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/umitGUI/NmapOutputViewer.py

    r1106 r1107  
    359359 
    360360        # Converting to UTF-8 before trying to use it on GTK 
    361         self.text_buffer.set_text(content.encode("utf-8")) 
     361        self.text_buffer.set_text(unicode(content, "utf-8")) 
    362362 
    363363        # Closing file to avoid file descriptor problems