in reply to Re: Re:^2 DBM modules and unicode keys
in thread DBM modules and unicode keys

By reading docs again and again I found my mistake. The $_ variable must be modified instead of returning value, because the return code from the filter is ignored. Thank you

The correct filtering function is

(tied %data)->filter_fetch_key( sub { $_ = decode('utf8', $_); } );