mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
parent
702976f8d6
commit
4ae2e1f116
@ -674,7 +674,7 @@ public class SketchController {
|
||||
FileUtils.copy(sketch.getFolder(), tempFolder);
|
||||
|
||||
for (SketchFile file : Stream.of(sketch.getFiles()).filter(SketchFile::isModified).collect(Collectors.toList())) {
|
||||
Files.write(Paths.get(tempFolder.getAbsolutePath(), file.getFileName()), file.getProgram().getBytes());
|
||||
Files.write(Paths.get(tempFolder.getAbsolutePath(), file.getFileName()), file.getProgram().getBytes("UTF-8"));
|
||||
}
|
||||
|
||||
return Paths.get(tempFolder.getAbsolutePath(), sketch.getPrimaryFile().getFileName()).toFile();
|
||||
|
Loading…
x
Reference in New Issue
Block a user