This repository was archived by the owner on Jun 24, 2024. It is now read-only.
This repository was archived by the owner on Jun 24, 2024. It is now read-only.
Open
Description
// txt文件在ios上显示乱码
final contents = File(fileEntity.filePath).readAsStringSync();
fileEntity.filePath = fileEntity.filePath.replaceAll('.txt', '_temp.txt');
File(fileEntity.filePath).writeAsStringSync(contents.trim(), encoding: gbk, flush: true);
我是这样处理的,但是总是会抱错:RangeError (index): Invalid value: Not in range 0..100034, -1000023
Metadata
Metadata
Assignees
Labels
No labels