Subject: | Bad handling of binary data |
To reproduce:
use WWW::Mechanze;
use GraphViz::Data::Structure;
my $mech = WWW::Mechanize->new;
$mech->get('https://gogle.com');
my $viz = GraphViz::Data::Structure->new($mech);
my $png = $mech->as_png();
# No PNG is generated; dot syntax error occurs
The binary strings in the data structure will have to be encoded before being sent to dot.
Data structures without binary data render OK.