my $enc = find_encoding("iso-8859-2")->name;
Why ->name? It would return a string "iso-8859-2", instead of the object needed to be able to call methods like ->decode() upon.
use Encode; my $enc = find_encoding("iso-8859-2")->name; print $enc; # "iso-8859-2" $enc->decode("foo"); # Can't locate object method "decode" via packag +e "iso-8859-2"
In reply to Re^2: Decode stops working
by almut
in thread Decode stops working
by vahokif
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |