Skip to content

Instantly share code, notes, and snippets.

@aero
Created October 7, 2010 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aero/614513 to your computer and use it in GitHub Desktop.
Save aero/614513 to your computer and use it in GitHub Desktop.
diff -uNr /usr/local/opsview-web.bak/lib/Opsview/Web/ControllerBase/WrapCGI.pm /usr/local/opsview-web/lib/Opsview/Web/ControllerBase/WrapCGI.pm
--- /usr/local/opsview-web.bak/lib/Opsview/Web/ControllerBase/WrapCGI.pm 2010-09-27 11:09:44.000000000 +0900
+++ /usr/local/opsview-web/lib/Opsview/Web/ControllerBase/WrapCGI.pm 2010-10-07 11:27:13.000000000 +0900
@@ -161,7 +161,8 @@
if ( $c->stash->{div_id} ) {
$body_data = '<div id="' . $c->stash->{div_id} . '">' . $body_data . "</div>";
}
- $c->stash( cgi_output => $body_data );
+ use Encode qw/encode decode/;
+ $c->stash(cgi_output => decode('utf8',$body_data));
$tree->delete;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment