View | Details | Raw Unified | Return to bug 6554
Collapse All | Expand All

(-)a/C4/Output.pm (-1 / +2 lines)
Lines 308-315 sub output_with_http_headers { Link Here
308
}
308
}
309
309
310
sub output_html_with_http_headers {
310
sub output_html_with_http_headers {
311
    binmode( STDOUT, ":encoding(utf8)" );
312
    my ( $query, $cookie, $data, $status ) = @_;
311
    my ( $query, $cookie, $data, $status ) = @_;
312
    $data =~ s/\&amp\;amp\; /\&amp\; /g && warn "DEBUG: fix double &";
313
    utf8::encode($data);
313
    output_with_http_headers( $query, $cookie, $data, 'html', $status );
314
    output_with_http_headers( $query, $cookie, $data, 'html', $status );
314
}
315
}
315
316
(-)a/C4/XSLT.pm (-2 / +2 lines)
Lines 221-227 sub XSLTParse4Display { Link Here
221
        $stylesheet->{$xslfilename} = $xslt->parse_stylesheet($style_doc);
221
        $stylesheet->{$xslfilename} = $xslt->parse_stylesheet($style_doc);
222
    }
222
    }
223
    my $results      = $stylesheet->{$xslfilename}->transform($source);
223
    my $results      = $stylesheet->{$xslfilename}->transform($source);
224
    my $newxmlrecord = $stylesheet->{$xslfilename}->output_string($results);
224
    my $newxmlrecord = $stylesheet->{$xslfilename}->output_as_chars($results);
225
    #utf8::decode($newxmlrecord); # Bug 6554 - XSLT templates have utf-8 in header
225
    return $newxmlrecord;
226
    return $newxmlrecord;
226
}
227
}
227
228
228
- 

Return to bug 6554