in reply to Re: utf8 filenames
in thread utf8 filenames
which produces:use utf8; ex("c:\\fil\x{e9}.txt"); ex("c:\\fil" . pack("U", 0xe9 ) . ".txt"); sub ex { my $f2 = shift; my $f = $f2; print $f; print ((-e $f) ? " exists" : " doesn't exist"); print "\n"; my $f = $f2; utf8::upgrade($f); print $f; print ((-e $f) ? " exists" : " doesn't exist"); print "\n"; my $f = $f2; utf8::downgrade($f); print $f; print ((-e $f) ? " exists" : " doesn't exist"); print "\n\n"; }
Is utf8::downgrade always guaranteed to produce a string with the required encoding for any environment though?c:\filé.txt exists c:\filé.txt doesn't exist c:\filé.txt exists c:\filé.txt doesn't exist c:\filé.txt doesn't exist c:\filé.txt exists
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: utf8 filenames
by wazoox (Prior) on Apr 10, 2006 at 17:58 UTC |