I have a library that is returning a scalar to me that incorrectly has its utf8 flag set. The scalar contains "binary" data that should not be treated as utf8.
I want to use length() and print() on the scalar.
Assuming I can't fix the broken library code, what is the best way to handle this? Do I "use bytes"? Do I turn off the utf8 flag (via Encode or pack)? Are there other ways to deal with this?
In reply to deal with incorrectly set utf8 flag by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |