54 |
return $iconv_loc->convert(chr(hex($t))); |
return $iconv_loc->convert(chr(hex($t))); |
55 |
} |
} |
56 |
$content =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex; |
$content =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex; |
57 |
|
$content =~ s/^[\n\r]+//s; |
58 |
$content =~ s/[\n\r]+$//s; |
$content =~ s/[\n\r]+$//s; |
59 |
|
|
60 |
write_file($path . '.new', $content) || die "can't save ${path}.new $!"; |
write_file($path . '.new', $content) || die "can't save ${path}.new $!"; |
76 |
|
|
77 |
if ($q->path_info =~ m#xml#) { |
if ($q->path_info =~ m#xml#) { |
78 |
|
|
79 |
my @ds = $db->load_ds($rec); |
my $ds = $db->load_ds($rec); |
80 |
|
|
81 |
if (@ds && $#ds > 0) { |
if ($ds) { |
82 |
print qq{<response> |
print qq{<response> |
83 |
<action type='html' target='div_record' errorCode='' errorMessage='' > |
<action type='html' target='div_record' errorCode='' errorMessage='' > |
84 |
}, $iconv_utf8->convert( $out->apply( |
}, $iconv_utf8->convert( $out->apply( |
85 |
template => $template_file, |
template => $template_file, |
86 |
data => \@ds, |
data => $ds, |
87 |
) ), qq{ |
) ), qq{ |
88 |
|
|
89 |
</action> |
</action> |