in reply to catching Unicode non-character ... illegal for open interchange

And what's wrong with binmode or using utf-8 IO layer? Or the encode module?

Beware that Tom's answer you mentioned is most probably very useful for general comprehension, but might be somewhat outdated with modern Perl versions. Between at least 5.6 and 5.16, each version of Perl has significantly improved Unicode processing.

Je suis Charlie.
  • Comment on Re: catching Unicode non-character ... illegal for open interchange
  • Download Code