Can I ask Perl 6's LWP::Simple to handle malformed UTF-8?

Viewed 234

I'm using LWP::Simple to fetch a webpage that has a couple of malformed characaters in it. My call to .get blows up on that. Rather than that, I'd like to have the decode insert replacement characters in the confused parts and keep going.

It looks like the response is a Buf object and using that .decode. I'm still investigating, but the lack of documentation is making this more difficult than it should be.

2 Answers
Related