Something in my script causes File::Find to return UTF-8
instead of ANSI strings. At least I think it's UTF-8.

The ANSI filename is:
��� �� �ᡵ. G���ad.doc

$File::Find::name returns:
çá¬áº ¡á ¬á¡µ. G«óáad.doc

I tried using File::Find in a simple script.
$File::Find::name returns the ANSI string. Therefore, my
program is doing something strange to cause File::Find to
alter its behavior.

I copied all the "use" statements to the simple test program
and I can't reproduce the problem.

My program reads an XML file using XML::Parser. I did the
same in my simple test program and wasn't able to replicate
the File::Find behavior.  Beyond using XML::Parser, the
script doesn't do anything that's out of the ordinary --
print statements, minor I/O, etc..  The XML file does use
UTF-8 encoding, but my test case used the same file.

$File::Find::name returns a UTF-8 string but if I use the -e
operator, it fails.  Therefore only part of the I/O system
is "switched" to UTF-8.

Please see also
<http://perlmonks.org/index.pl?node_id=340134>

Perl Version:
This is perl, v5.8.3 built for MSWin32-x86-multi-thread
(with 8 registered patches, see perl -V for more detail)

Binary build 809 provided by ActiveState Corp.

Instead of tearing apart my script and running it piecemeal
(which will probably take days) I was wondering if anyone
had any ideas?

Thanks,
Terris
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to