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

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

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

2018-12-26 Thread Mike Martin
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 thanks Mike

Re: recursively find and print non-ascii characters in file

2009-01-08 Thread Mike McClain
On Thu, Jan 08, 2009 at 01:52:02AM +, Rob Dixon wrote: Chas. Owens wrote: File::Find::find( File::Find exports find() by default. It is better either to use the import or to prevent it altogether with use File::Find (); in the first place. Rob In what way is it better?

Re: recursively find and print non-ascii characters in file

2009-01-08 Thread Chas. Owens
On Thu, Jan 8, 2009 at 14:10, Mike McClain mike.j...@nethere.com wrote: On Thu, Jan 08, 2009 at 01:52:02AM +, Rob Dixon wrote: Chas. Owens wrote: File::Find::find( File::Find exports find() by default. It is better either to use the import or to prevent it altogether with use

recursively find and print non-ascii characters in file

2009-01-07 Thread Anže Vidmar
of the files containing it. So far, I found a script that looks into a file for non-ascii characters and prints this characters in hex: while () { s/([\x80-\xff])/sprintf \\x{%02x},ord($1)/eg; print; } Ok, this is good, the non-ascii character (in hex) that I'm looking for is: x{ef

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Chas. Owens
in the file. And most importantly - i need to know the name of the files containing it. So far, I found a script that looks into a file for non-ascii characters and prints this characters in hex: while () { s/([\x80-\xff])/sprintf \\x{%02x},ord($1)/eg; print; } Ok, this is good

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Rob Dixon
to know the name of the files containing it. So far, I found a script that looks into a file for non-ascii characters and prints this characters in hex: while () { s/([\x80-\xff])/sprintf \\x{%02x},ord($1)/eg; print; } Ok, this is good, the non-ascii character (in hex

Re: recursively find and print non-ascii characters in file

2009-01-07 Thread Rob Dixon
non-ascii character in the file. And most importantly - i need to know the name of the files containing it. So far, I found a script that looks into a file for non-ascii characters and prints this characters in hex: while () { s/([\x80-\xff])/sprintf \\x{%02x},ord($1)/eg; print

non-ascii characters?

2005-10-14 Thread Charles Farinella
Does anyone know how I can search for non-ascii characters in a text file? --charlie -- Charles Farinella Appropriate Solutions, Inc. (www.AppropriateSolutions.com) [EMAIL PROTECTED] 603.924.6079 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: non-ascii characters?

2005-10-14 Thread Jeff 'japhy' Pinyan
On Oct 14, Charles Farinella said: Does anyone know how I can search for non-ascii characters in a text file? By non-ASCII, do you mean characters high-bit ASCII or Unicode? -- Jeff japhy Pinyan% How can we ever be the sold short or RPI Acacia Brother #734% the cheated, we who

Re: non-ascii characters?

2005-10-14 Thread Charles Farinella
On Fri, 2005-10-14 at 15:34, Jeff 'japhy' Pinyan wrote: On Oct 14, Charles Farinella said: Does anyone know how I can search for non-ascii characters in a text file? By non-ASCII, do you mean characters high-bit ASCII or Unicode? h, I'm already in over my head. I'm trying