react-native-bluetooth-escpos-printer icon indicating copy to clipboard operation
react-native-bluetooth-escpos-printer copied to clipboard

Break word when automatic newline

Open zhenguet opened this issue 3 years ago • 2 comments

As title. My 1st line text is: "Trung tâm quản lý giao thông công cộng thành phố Hải Phòng" And the word is broken in the end of line. It should automatic newline in blank (" ") instead of "c ộng" Have any solution for it?

demo

zhenguet avatar Oct 31 '22 08:10 zhenguet

As title. My 1st line text is: "Trung tâm quản lý giao thông công cộng thành phố Hải Phòng" And the word is broken in the end of line. It should automatic newline in blank (" ") instead of "c ộng" Have any solution for it?

demo

Bạn ơi cho mình hỏi bạn sài encoding vs codepage nào mà in được tiếng Việt với ạ!! Mình thử hết mà không ra

chaudev avatar Nov 01 '22 13:11 chaudev

@chaudev không có cách nào cả đâu bác. cái này 1 là bác mua loại máy POS khác hỗ trợ tiếng Việt. 2 là bác phải liên hệ nhà sản xuất họ update firmware cho nhé. there is no way. Or buy another POS device, or ask the manufacturer to update firmware. I'm using

      await BluetoothEscposPrinter.printText(
        'Trung tâm quản lý giao thông công cộng thành phố Hải Phòng\n\r',
        {
          encoding: 'UTF-8',
        },
      );
      ```

zhenguet avatar Nov 02 '22 00:11 zhenguet