Add ascii encoding on network interface name

pull/154/head
Nicolas Hennion 2012-12-18 22:16:34 +01:00
parent 4247fdcace
commit c98b364d3c
1 changed files with 1 additions and 1 deletions

View File

@ -1821,7 +1821,7 @@ class glancesScreen:
# network interface name
self.term_window.addnstr(
self.network_y + 1 + i, self.network_x,
network[i]['interface_name'] + ':', 8)
unicode(network[i]['interface_name'], 'ascii', 'ignore') + ':', 8)
# Byte/s or bit/s
if self.net_byteps_tag: