Revision d72dd9ab
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/Template/OpenDocument.pm | ||
---|---|---|
270 | 270 |
|
271 | 271 |
$zip->contents("content.xml", Encode::encode('utf-8-strict', $new_contents)); |
272 | 272 |
|
273 |
my $styles = $zip->contents("styles.xml");
|
|
273 |
my $styles = Encode::decode('utf-8-strict', $zip->contents("styles.xml"));
|
|
274 | 274 |
if ($contents) { |
275 | 275 |
my $new_styles = $self->parse_block($styles); |
276 | 276 |
if (!defined($new_contents)) { |
277 | 277 |
$main::lxdebug->leave_sub(); |
278 | 278 |
return 0; |
279 | 279 |
} |
280 |
$zip->contents("styles.xml", $new_styles);
|
|
280 |
$zip->contents("styles.xml", Encode::encode('utf-8-strict', $new_styles));
|
|
281 | 281 |
} |
282 | 282 |
|
283 | 283 |
$zip->writeToFileNamed($form->{"tmpfile"}, 1); |
Auch abrufbar als: Unified diff
OpenDocument: Nicht-ASCII-Zeichen in styles.xml in UTF-8 konvertieren
Fixt #1861.