Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 handling error. #34

Open
kai101 opened this issue Jul 4, 2016 · 0 comments
Open

UTF-8 handling error. #34

kai101 opened this issue Jul 4, 2016 · 0 comments

Comments

@kai101
Copy link

kai101 commented Jul 4, 2016

I have a chinese windows server which send error message in chinese by the OS.

input:
'check_winping' 不是内部或外部指令,也不是可运行的程序或批处理文件

error on handle:
{ handle: { "type": "pipe", "command": "handler-mailer.rb", "name": "email_handler" }, "output": ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-0.3.1/bin/handler-mailer.rb:143:in gsub': invalid byte sequence in UTF-8 (ArgumentError)\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-0.3.1/bin/handler-mailer.rb:143:in build_body'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-mailer-0.3.1/bin/handler-mailer.rb:169:in handle'\n\tfrom /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.3.0/lib/sensu-handler.rb:57:in block in <class:Handler>'\n"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant