Revision dbda14c2
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Template/OpenDocument.pm | ||
---|---|---|
22 | 22 |
my $self = $type->SUPER::new(@_); |
23 | 23 |
|
24 | 24 |
$self->{"rnd"} = int(rand(1000000)); |
25 |
$self->{"iconv"} = SL::Iconv->new($::lx_office_conf{system}->{dbcharset}, "UTF-8"); |
|
26 | 25 |
|
27 | 26 |
$self->set_tag_style('<%', '%>'); |
28 | 27 |
$self->{quot_re} = '"'; |
... | ... | |
575 | 574 |
sub format_string { |
576 | 575 |
my ($self, $variable) = @_; |
577 | 576 |
my $form = $self->{"form"}; |
578 |
my $iconv = $self->{"iconv"}; |
|
579 | 577 |
|
580 | 578 |
$variable = $main::locale->quote_special_chars('Template/OpenDocument', $variable); |
581 | 579 |
|
... | ... | |
591 | 589 |
$variable =~ s|\</${key}\>|</text:span>|gi; |
592 | 590 |
} |
593 | 591 |
|
594 |
return $iconv->convert($variable);
|
|
592 |
return $variable;
|
|
595 | 593 |
} |
596 | 594 |
|
597 | 595 |
sub get_mime_type() { |
Auch abrufbar als: Unified diff
Unterstützung für andere Datenbankencodings als Unicode/UTF-8 entfernt