]> wagnertech.de Git - mfinanz.git/blobdiff - SL/SEPA/XML.pm
ImageUpload: resolve
[mfinanz.git] / SL / SEPA / XML.pm
index 8ccfa837452d2d9627cd72d458e54372c27185a7..e4bf360d676102af6a08826cd8518b9341a70b91 100644 (file)
@@ -67,10 +67,15 @@ sub _replace_special_chars {
     'Ü' => 'Ue',
     'ß' => 'ss',
     '&' => '+',
+    '`' => '\'',
     );
 
   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;
 }