I have some current code and the problem is its creating a 1252 codepage file, i want to force it to create a UTF-8 file
Can anyone help me with this code, as i say
Since Java 7 you can do the same with Files.newBufferedWriter a little more succinctly:
Files.newBufferedWriter
Path logFile = Paths.get("/tmp/example.txt"); try (BufferedWriter writer = Files.newBufferedWriter(logFile, StandardCharsets.UTF_8)) { writer.write("Hello World!"); // ... }