I am trying to read a dot file containing:
graph {
KZJLCHYE -- DJTGWUZZ;
PNLWKOXF -- BFSIOMPY;
...
}
But when I try to read the dot file, I get "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte". Is there a way I can read the contents of a dot file in Python only using the standard library?
hexdump -C -n 16 yourfile.dot