[Catalyst-commits] r9660 -
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller
ruoso at dev.catalyst.perl.org
ruoso at dev.catalyst.perl.org
Tue Apr 7 13:41:14 GMT 2009
Author: ruoso
Date: 2009-04-07 14:41:14 +0100 (Tue, 07 Apr 2009)
New Revision: 9660
Modified:
Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm
Log:
[C-C-SOAP] fix utf8 bug, using a patch by kmx;
Modified: Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm
===================================================================
--- Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm 2009-04-06 08:07:40 UTC (rev 9659)
+++ Catalyst-Controller-SOAP/1.0/trunk/lib/Catalyst/Controller/SOAP.pm 2009-04-07 13:41:14 UTC (rev 9660)
@@ -370,8 +370,8 @@
$c->res->status(500) if $soap->fault;
$c->log->debug("Outgoing XML: ".$envelope->toString()) if $c->debug;
- $c->res->content_type('text/xml');
- $c->res->body($envelope->toString());
+ $c->res->content_type('text/xml; charset=UTF-8');
+ $c->res->body(encode('utf8',$envelope->toString()));
}
More information about the Catalyst-commits
mailing list