projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9742288
)
SEPA-Export ISO20022 konforme Feldinhalte
author
Jan Büren
<jan@kivitendo-premium.de>
Wed, 19 Jul 2017 14:22:56 +0000
(16:22 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Wed, 19 Jul 2017 14:22:56 +0000
(16:22 +0200)
Das _replace_special_chars kümmert sich perfekt um
deutsche Umlaute, allerdings gibt es im SEPA-Raum einige
Firmenname die andere Umlaute/Sonderzeichen behalten
(s.a. perldoc Text::Unidecode).
SL/SEPA/XML.pm
patch
|
blob
|
history
diff --git
a/SL/SEPA/XML.pm
b/SL/SEPA/XML.pm
index
3aa88b7
..
e4bf360
100644
(file)
--- a/
SL/SEPA/XML.pm
+++ b/
SL/SEPA/XML.pm
@@
-72,6
+72,10
@@
sub _replace_special_chars {
map { $text =~ s/$_/$special_chars{$_}/g; } keys %special_chars;
+ # for all other non ascii chars 'OLÉ S.L.' and 'Årdberg AB'!
+ use Text::Unidecode qw(unidecode);
+ $text = unidecode($text);
+
return $text;
}