I have a module encoded in latin1, and VersionFromModule complains about utf8.
I have the latest Dist::Zilla and VersionFromModule.
Here is the module:
package Foo::Enctest;
our $VERSION = 0.001;
1;
=pod
=encoding latin-1
=head1 SYNOPSIS
äöü
=cut
The dist.ini:
name = Foo-Enctest
[@Basic]
[VersionFromModule]
[Encoding]
filename = lib/Foo/Enctest.pm
encoding = Latin-1
The error message:
Could not decode UTF-8 lib/Foo/Enctest.pm; encoded_content set by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 165); error was: utf8 "\xE4" does not map to Unicode
...
Dist::Zilla::Role::ModuleInfo::get_module_info('Dist::Zilla::Plugin::VersionFromModule=HASH(0x4cdb2b0)', 'Dist::Zilla::File::OnDisk=HASH(0x4a2da40)')