Perl Unicode Cookbook: Explicit encode/decode
℞ 12: Explicit encode/decode While the standard Perl Unicode preamble makes Perl’s filehandles use UTF-8 encoding by default, filehandles aren’t the only sources and sinks of data. On rare occasions, such as a database read, you may be given encoded…