mirror of https://github.com/halo-dev/halo
Fix migration error
parent
357f094057
commit
1b48541a28
|
@ -24,6 +24,7 @@ import run.halo.app.utils.ServiceUtils;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
@ -94,7 +95,7 @@ public class RecoveryServiceImpl implements RecoveryService {
|
|||
public void migrateFromV0_4_3(MultipartFile file) {
|
||||
// Get migration content
|
||||
try {
|
||||
String migrationContent = FileCopyUtils.copyToString(new InputStreamReader(file.getInputStream()));
|
||||
String migrationContent = FileCopyUtils.copyToString(new InputStreamReader(file.getInputStream(), StandardCharsets.UTF_8));
|
||||
|
||||
Object migrationObject = JsonUtils.jsonToObject(migrationContent, Object.class);
|
||||
|
||||
|
|
Loading…
Reference in New Issue