http://www.perlmonks.org?node_id=1021036


in reply to App::Cmd::Command and abstract encoding

Hi,

based on what I found in the source code and that I use a base class derived from App::Cmd::Command for all my commands I decided (constrained by time at the moment) to use the following solution:

I wrote the following method in my Commands base class:

sub abstract { my $self = shift; return decode('UTF-8', $self->SUPER::abstract(@_)); }

Don't forget use Encode qw(decode);.

Happy programming
McA

P.S.: Have I ever mentioned that I hate the whole encoding stuff... ;-)