Explorar o código

u8凭证导出乱码优化

hxh hai 4 meses
pai
achega
5c4173e5b7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/custom/restcontroller/sale/cashbill/TxtFactory.java

+ 4 - 0
src/custom/restcontroller/sale/cashbill/TxtFactory.java

@@ -26,6 +26,10 @@ public class TxtFactory {
         try {
             PrintWriter out = new PrintWriter(this.filepath, StandardCharsets.UTF_8);
 
+
+            out.write(0xEF);
+            out.write(0xBB);
+            out.write(0xBF);
             // 写入文本
             out.println(str);
             // 确保所有缓冲的输出都被写出