Something my script is doing has caused 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.
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.
Any ideas?
Thanks,
Terris
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.