develooper Front page | perl.perl5.porters | Postings from February 2009

Re: [perl #63184] mkdir with non-ASCII characters

Thread Previous
Eric Brine
February 16, 2009 15:17
Re: [perl #63184] mkdir with non-ASCII characters
Message ID:
On Mon, Feb 16, 2009 at 9:21 AM, Farkas Máté <> wrote:

>   my *$dirName* = '../Üzemanyag'; # Üzemanyag == fuel in english
>   Win32::*CreateDirectory*($dirName);
>   my *$dir* = Win32::GetANSIPathName( $dirName );
>   *LWP::Simple::getstore( $url, "$dir/$file" );*
> It doesn't work, but if I use *U* instead of *Ü*, it works well. It doesn't
> work even if I use "$dirName/$file" or someone else.

What's with the asterisks? It works for me with a utf-8 encoded source file,
but maybe it's because of my locale can handle that character. You could try
Win32::GetShortPathName instead of Win32::GetANSIPathName. It seems to
return only ASCII characters. Perl support for Windows files sucks.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About