Ver código fonte

u8凭证导出乱码优化

hxh 4 meses atrás
pai
commit
5c4173e5b7

+ 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);
             // 确保所有缓冲的输出都被写出