Skip to content

Commit

Permalink
Add missing replacement chars and remove conflicting. STDSDK-13 #resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoppinho committed Jan 17, 2020
1 parent 3a273f3 commit 5f1ce19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<name>Santander SDK</name>

<properties>
<version.org.fenixedu.bennu>6.3.1</version.org.fenixedu.bennu>
<version.org.fenixedu.bennu>6.5.0</version.org.fenixedu.bennu>
<version.org.apache.cxf>3.1.10</version.org.apache.cxf>
<version.org.imgscalr.imgscalr-lib>4.2</version.org.imgscalr.imgscalr-lib>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand All @@ -27,7 +28,7 @@ public class SantanderLineGenerator {

private static final Logger LOGGER = LoggerFactory.getLogger(SantanderLineGenerator.class);
private final Map<String, String> charReplacementMap = new HashMap<>();
private final CharsetEncoder latin1CharsetEncoder = Charset.forName("ISO-8859-1").newEncoder();
private final CharsetEncoder latin1CharsetEncoder = StandardCharsets.ISO_8859_1.newEncoder();

private SantanderEntryValidator santanderEntryValidator;

Expand Down Expand Up @@ -374,7 +375,8 @@ private void fillCharReplacementMap() {
charReplacementMap.put("Ü", "U");
charReplacementMap.put("ş", "s");
charReplacementMap.put("Ş", "S");
charReplacementMap.put("'", " ");
charReplacementMap.put("Ä", "A");
charReplacementMap.put("ä", "a");
}

}

0 comments on commit 5f1ce19

Please sign in to comment.