diff --git a/pom.xml b/pom.xml
index 0f7d8dc5..fc619f85 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,6 +46,12 @@
+
+
+ commons-codec
+ commons-codec
+ 1.16.0
+
org.springframework.boot
spring-boot-starter-security
@@ -64,6 +70,13 @@
lombok
true
+
+
+ junit
+ junit
+ 4.13.2
+ test
+
org.springframework.boot
spring-boot-starter-test
diff --git a/src/main/java/au/org/aodn/esindexer/service/StacCollectionMapperServiceImpl.java b/src/main/java/au/org/aodn/esindexer/service/StacCollectionMapperServiceImpl.java
index ae7467ff..7436f910 100644
--- a/src/main/java/au/org/aodn/esindexer/service/StacCollectionMapperServiceImpl.java
+++ b/src/main/java/au/org/aodn/esindexer/service/StacCollectionMapperServiceImpl.java
@@ -5,6 +5,7 @@
import au.org.aodn.esindexer.model.*;
import au.org.aodn.esindexer.utils.BBoxUtils;
import au.org.aodn.esindexer.utils.GeometryUtils;
+import au.org.aodn.esindexer.utils.StringUtil;
import au.org.aodn.esindexer.utils.TemporalUtils;
import au.org.aodn.metadata.iso19115_3_2018.*;
import jakarta.xml.bind.JAXBElement;
@@ -257,11 +258,11 @@ String mapTitle(MDMetadataType source) {
// TODO: Null or empty check
AbstractCitationType ac = i.getCitation().getAbstractCitation().getValue();
if(ac instanceof CICitationType2 type2) {
- return type2.getTitle().getCharacterString().getValue().toString();
+ return StringUtil.toUTF8String(type2.getTitle().getCharacterString().getValue().toString());
}
else if(ac instanceof CICitationType type1) {
// Backward compatible
- type1.getTitle().getCharacterString().getValue().toString();
+ return StringUtil.toUTF8String(type1.getTitle().getCharacterString().getValue().toString());
}
}
}
@@ -273,10 +274,10 @@ protected List