in reply to Re^2: How to know to know if string is utf8 encoded or decoded.
in thread How to know to know if string is utf8 encoded or decoded.
You should be aware that in case of a decoding error, $str will be overwritten.eval { $unicode = Encode::decode($from,$str,Encode::FB_CROAK); }; if ($@) { &ConvertEncodingError("($from -> utf8)\n$@"); return $str; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to know to know if string is utf8 encoded or decoded.
by ikegami (Patriarch) on Jul 29, 2019 at 05:54 UTC |