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
In reply to Re^2: utf8 filenames
by cjk32
in thread utf8 filenames
by cjk32
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |