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
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
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
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?
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
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
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
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
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
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
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
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
12 matches
Mail list logo