Perl Unicode Cookbook: Make File I/O Default to UTF-8
℞ 17: Make file I/O default to utf8 If you’ve ever had the misfortune of seeing the Unicode warning “wide character in print”, you may have realized that something forgot to set the appropriate Unicode-capable encoding on a filehandle somewhere…