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

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

Thread Previous
From:
Eric Brine
Date:
February 16, 2009 15:17
Subject:
Re: [perl #63184] mkdir with non-ASCII characters
Message ID:
f86994700902161516r4dabec62k5b3999de34c3f132@mail.gmail.com
On Mon, Feb 16, 2009 at 9:21 AM, Farkas Máté <fmate144@gmail.com> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About