#3464·nmap

Crash loading scan results to compare

Author: fspanhovenCreated Sep 2, 2026Updated Sep 3, 2026
LabelsZenmap

Describe the bug Zenmap crash loading scan results to compare

To Reproduce Load first scan to compare, load the second.

Expected behavior Crash with the below crashreport on loading the second scan.

Version info (please complete the following information):

  • OS: Windows 10 22H2 19045.7663]
  • Zenmap version from 7.97
  • Output of nmap --version:Nmap version 7.98 ( https://nmap.org ) Platform: i686-pc-windows-windows Compiled with: nmap-liblua-5.4.8 openssl-3.0.17 nmap-libssh2-1.11.1 nmap-libz-1.3.1 nmap-libpcre2-10.45 Npcap-1.86 nmap-libdnet-1.18.0 ipv6 Compiled without: Available nsock engines: iocp poll select

Additional context Version: 7.97 Traceback (most recent call last): File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.12\site-packages\zenmapGUI\DiffCompare.py", line 329, in refresh_diff self.ndiff_process = zenmapCore.Diff.ndiff(scan_a, scan_b) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.12\site-packages\zenmapCore\Diff.py", line 171, in ndiff scan_a.write_xml(f) File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.12\site-packages\zenmapCore\NmapParser.py", line 1021, in write_xml self._write_output(writer) File "C:\Program Files (x86)\Nmap\zenmap\lib\python3.12\site-packages\zenmapCore\NmapParser.py", line 1046, in _write_output writer.characters(self.nmap_output) File "../lib/python3.12/xml/sax/saxutils.py", line 213, in characters File "../lib/python3.12/encodings/cp1252.py", line 19, in encode UnicodeEncodeError: 'charmap' codec can't encode character '\uff0c' in position 5372: character maps to