Monday, August 16, 2010

Catalyst unicode-related error

Caught exception in engine "Wide character in syswrite at
/usr/local/share/perl/5.8.8/Catalyst/Engine.pm line 675."


the solution is to add the Unicode plugin to the application:


use Catalyst qw/
# ... some other plugins
Unicode
/;

2 comments:

  1. Catalyst::Plugin::Unicode is deprecated, because it tries to guess the encoding, which is unreliable. You should use Catalyst::Plugin::Unicode::Encoding instead.

    ReplyDelete
  2. Why wouldn't Catalyst just handle Unicode properly without having to add a plugin?

    ReplyDelete