Commit 825b05c5 authored by Maxym Borodenko's avatar Maxym Borodenko

Change to UTF-8

parent 6b29dddb
......@@ -188,11 +188,11 @@ public class RepositoryController {
if (folder == null) {
throw new ResourceNotFoundException("No folder with path=" + folderPath);
}
response.setContentType("text/csv;charset=UTF-16LE");
response.setContentType("text/csv;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=" + folder.getName() + "_files_metadata.csv ");
Stream<RepositoryFile> files = repositoryService.streamFiles(Paths.get(folder.getPath()), RepositoryFile.DEFAULT_SORT);
filesMetadataInfo.downloadMetadata(files, response, '\t', '"', '\\', "\n", "UTF-16LE");
filesMetadataInfo.downloadMetadata(files, response, '\t', '"', '\\', "\n", "UTF-8");
}
/**
......
......@@ -736,11 +736,11 @@ public class WiewsController extends BaseController {
instituteService.getInstituteForEdit(wiewsCode);
final Path wiewsPath = Paths.get("/wiews/", wiewsCode);
response.setContentType("text/csv;charset=UTF-16LE");
response.setContentType("text/csv;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=" + wiewsCode + "_files_metadata.csv ");
Stream<RepositoryFile> files = repositoryService.streamFiles(wiewsPath, RepositoryFile.DEFAULT_SORT);
filesMetadataInfo.downloadMetadata(files, response, '\t', '"', '\\', "\n", "UTF-16LE");
filesMetadataInfo.downloadMetadata(files, response, '\t', '"', '\\', "\n", "UTF-8");
}
@PostMapping(value = "/{wiewsCode}/files/metadata/upload")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment