Hi.

I get an error of kind "utf8 ... does not map to Unicode at ..." when i'm trying to get files list by qx#find ...# construction, in the case when the files have wrong characters (non-utf8).

I know how to redirect the output to a file and then read the files w/ the wrong encoding, pointed out, so, that i can read all the characters, and even PERL can work in the case (no die w/ an error).

The problem lays in necessity to open those files list by some other programs, ran through system() call, after some logic being done by the script on the files list. -- The PERL logic works perfect on the converted files list, as long as it comes not to the "another program call through system()" -- in which case, of course, the original (not converted) files names are necessary (or the "another program" simply does not recognize it in the FS -- that makes the "work around" profit for PERL to zero!

In other words, the PERL script would work perfectly, unless the PERL itself would not be stupid enough as to inform the user on the "mapping" -- that not user, nor "other programs" called, do not carry for, and terminate the script.

So, as i have to try to accomplish the task in PERL, what are my options regarding the matter?

- Can i straiten PERL by some magical directive as to keep simpler and perform not the tasks it is not been asked for (informing), nor terminate scripts running it (on PERL's much want, but let scripts itself decide what to do w/ the data it processes), regardless PERL poor design?

- Or there is some other trick how PERL developers do in such cases?

Thanks for any advance or idea.


In reply to [CLOSED] How to make PERL just execute the script until its end? by nikolay

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.