projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Umleitung der Ansprechpersonensuche (im MenĂ¼V3-Header) gefixt
[kivitendo-erp.git]
/
SL
/
Iconv.pm
diff --git
a/SL/Iconv.pm
b/SL/Iconv.pm
index
d6ea0cb
..
19b8ca1
100644
(file)
--- a/
SL/Iconv.pm
+++ b/
SL/Iconv.pm
@@
-37,7
+37,10
@@
sub convert {
$to_charset ||= Common::DEFAULT_CHARSET;
my $converter = _get_converter($from_charset, $to_charset);
$to_charset ||= Common::DEFAULT_CHARSET;
my $converter = _get_converter($from_charset, $to_charset);
- return $converter->convert($text);
+ $text = $converter->convert($text);
+ $text = decode("utf-8-strict", $text) if ($to_charset =~ m/^utf-?8$/i) && !Encode::is_utf8($text);
+
+ return $text;
}
sub _convert {
}
sub _convert {