Re: How to test for existence of file with non-ascii characters

2018-12-26 Thread Uri Guttman
On 12/26/18 7:31 AM, Mike Martin wrote: Any ideas how to test for the existance of a file, when the file name contains extended ascii characters For example if the file contains emdash (U-2014) file -e always returns false -e should not be looking at the filename directly. it checks if th

Re: How to test for existence of file with non-ascii characters

2018-12-26 Thread Jesús Ruiz
I created a file whose name is just an emdash in bash with $ printf '\xe2\x80\x94' and this seems to work here (linux): my $fname = "\xe2\x80\x94"; if (-e "$fname") { print "exists\n" } On 2018-12-26 12:31:24, Mike Martin wrote: > Any ideas how to test for the existance of a file, when the