Commit 43b6f4a4 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 426899: Hack SOAP::Lite to encode upper-ASCII characters correctly for the WebService.

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 6c34f604
......@@ -112,6 +112,16 @@ sub new {
return $self;
}
sub as_string {
my $self = shift;
my ($value) = @_;
# Something weird happens with XML::Parser when we have upper-ASCII
# characters encoded as UTF-8, and this fixes it.
utf8::encode($value) if utf8::is_utf8($value)
&& $value =~ /^[\x00-\xff]+$/;
return $self->SUPER::as_string($value);
}
1;
__END__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment