diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java index 2ee9e31c..9c23b7b0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java @@ -31,6 +31,7 @@ import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.File; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.ArrayList; import java.util.Collections; @@ -354,10 +355,13 @@ public class FascicoloPortlet extends MVCPortlet { if (Validator.isNull(doc.getDlFileEntryId())) { continue; } + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getDlFileEntryId()); inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), - fileEntry.getVersion(), false); - String name = fileEntry.getTitle(); + fileEntry.getVersion(), false); + String s = new String(fileEntry.getTitle().getBytes(StandardCharsets.UTF_8)); + byte[] b = s.getBytes(StandardCharsets.ISO_8859_1); + String name = new String(b, StandardCharsets.ISO_8859_1); zipWriter.addEntry(name, inputStream); } finally { StreamUtil.cleanUp(inputStream); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index 93a748f5..bf14df84 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2601 - build.date=1620304230178 + build.number=2602 + build.date=1620641411855 build.auto.upgrade=true ##