in reply to Re^3: Unrecognized ICU conversion error [after your updates]
in thread Unrecognized ICU conversion error

As there are many scripts, we are looking for a solution at configuration/high level than in the script itself. Thank you!
  • Comment on Re^4: Unrecognized ICU conversion error [after your updates]

Replies are listed 'Best First'.
Re^5: Unrecognized ICU conversion error [after your updates]
by cavac (Prior) on Aug 13, 2023 at 10:05 UTC

    As i've said before in Re^2: Unrecognized ICU conversion error and kcott explained much better in Re^4: Unrecognized ICU conversion error [after your updates], your problems seem to stem from bugs in your perl scripts (improper unicode handling), not from the Perl interpreter itself. There simply is "no high level configuration" to work around the bugs in your software.

    There are basically three ways to fix the problems with your code:

    1. Fix the bugs yourself.
    2. Contact whoever wrote the code to have them fix it.
    3. Open Source the whole thing and hope it is useful enough to someone that they spend their spare time to fix your code for free.

    Short of that, you could just make sure that no Unicode enters your system in the first place.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
      Thanks! So, another question. Is it possible to overwrite the definition of Open() function in Perl? This way, there's no need to change the code in every script.

        You won't have read the FAQ then, since the very example given is to redefine the operation of open. ;-)

        But seriously, think very hard before doing that.


        🦛