perl - Wide character in subroutine entry in otrs on Postgres 9.4beta1 -
after upgrading postgres 9.1.2 postgres 9.4beta1, otrs 3.3.5 stopped working perl error found in http-error.log, raised when closing ticket. error is:
wide character in subroutine entry @ [...]/kernel/system.db.pm line 499
the line 499 following:
if ( !$self->{dbh}->do( $param{sql}, undef, @array ) ) {
it seems perl script fails while executing query.
my perl version v5.16.3.
i searched lot no solution worked me far.
this warning not error. looking in perldiag gives explanation.
wide character in %s
(s utf8) perl met wide character (>255) when wasn't expecting one. warning default on i/o (like print). easiest way quiet warning add :utf8 layer output, e.g. binmode stdout, ':utf8' . way turn off warning add no warnings 'utf8'; closer cheating. in general, supposed explicitly mark filehandle encoding, see open , binmode.
you have utf8-encoded characters perl expecting see bytes. need encode()
data before gets point.
Comments
Post a Comment