perl – Postgres 9.4beta1中otrs中子例程条目中的宽字符

perl – Postgres 9.4beta1中otrs中子例程条目中的宽字符,第1张

概述从Postgres 9.1.2升级到Postgres 9.4beta1后,OTRS 3.3.5停止使用http-error.log中发现的Perl错误,在关闭票证时引发.错误是: Wide character in subroutine entry at […]/Kernel/System.DB.pm line 499 499行如下: if ( !$Self->{dbh}->do( $Param{ 从Postgres 9.1.2升级到Postgres 9.4beta1后,OTRS 3.3.5停止使用http-error.log中发现的Perl错误,在关闭票证时引发.错误是:

WIDe character in subroutine entry at […]/Kernel/System.DB.pm line 499

499行如下:

if ( !$Self->{dbh}->do( $Param{sql},undef,@Array ) ) {

似乎Perl脚本在执行查询时失败.

我的Perl版本是v5.16.3.

我搜索了很多但到目前为止还没有解决方案.

解决方法 这是一个警告而不是错误.查看 perldiag给出了解释.

WIDe character in %s

(S utf8) Perl met a wIDe character (>255) when it wasn’t expecting
one. This warning is by default on for I/O (like print). The easIEst
way to quIEt this warning is simply to add the :utf8 layer to the
output,e.g. binmode STDOUT,‘:utf8’ . Another way to turn off the
warning is to add no warnings ‘utf8’; but that is often closer to
cheating. In general,you are supposed to explicitly mark the
filehandle with an enCoding,see open and binmode.

你有utf8编码的字符,其中Perl期望看到字节.您可能需要在数据到达此点之前对其进行编码().

总结

以上是内存溢出为你收集整理的perl – Postgres 9.4beta1中otrs中子例程条目中的宽字符全部内容,希望文章能够帮你解决perl – Postgres 9.4beta1中otrs中子例程条目中的宽字符所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/langs/1233089.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-06
下一篇 2022-06-06

发表评论

登录后才能评论

评论列表(0条)

保存