I am trying to print MAC address using python rich library. Below is code. The ":cd" in the MAC address get converted to an actual CD disk emoji. How to prevent that from happening?
from rich.console import Console
from rich.table import Table
table = Table(safe_box=True)
table.add_column("MAC address")
table.add_row("08:00:27:cd:af:88")
console = Console()
console.print(table)
Output:
┏━━━━━━━━━━━━━━━━━┓
┃ MAC address ┃
┡━━━━━━━━━━━━━━━━━┩
│ 08:00:27af:88 │
└─────────────────┘
I tried using safe_box=True option to not print Unicode but that did not work. I want the final output to look like
┏━━━━━━━━━━━━━--━━━━┓
┃ MAC address ┃
┡━━━━━━━━━━━━━━━--━━┩
│ 08:00:27:cd:af:88 │
└───────────--──────┘