Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks

What is wrong with the following?

#!/usr/bin/perl use strict; use warnings; use utf8; use Encode qw(encode decode encode_utf8); use File::Path qw(make_path remove_tree); my $dirname="ÜÜ"; $dirname=Encode::decode_utf8( $dirname ); my $path= "C:/$dirname"; make_path($path);

I just want to create a directory with accented characters. I'm using Perl 5.8 (are newer Perls 'easier' with regards with encodings?), Window7. Thank you.

Replies are listed 'Best First'.
Re: create directory encoding ( Win32::Unicode::Native )
by Anonymous Monk on Jun 17, 2013 at 09:11 UTC