#1847 Try to fix chinese PDF problem

This commit is contained in:
Jindra Petřík
2022-10-22 19:01:34 +02:00
parent d3477d910c
commit b61e009665

View File

@@ -19,7 +19,7 @@ public class RawPrintWriter {
public void print(String s) {
try {
os.write(s.getBytes());
os.write(s.getBytes("UTF-8"));
} catch (IOException ex) {
Logger.getLogger(RawPrintWriter.class.getName()).log(Level.SEVERE, null, ex);
}
@@ -35,7 +35,7 @@ public class RawPrintWriter {
public void println(String s) {
try {
os.write((s + "\n").getBytes());
os.write((s + "\n").getBytes("UTF-8"));
} catch (IOException ex) {
Logger.getLogger(RawPrintWriter.class.getName()).log(Level.SEVERE, null, ex);
}