Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 在react本机热敏打印机(react本机蓝牙escpos打印机)中打印磅签名_React Native_Thermal Printer - Fatal编程技术网

React native 在react本机热敏打印机(react本机蓝牙escpos打印机)中打印磅签名

React native 在react本机热敏打印机(react本机蓝牙escpos打印机)中打印磅签名,react-native,thermal-printer,React Native,Thermal Printer,我正在使用(本地蓝牙escpos打印机)打印带有磅符号“₤”的收据。但我得到的是“?”。如果有人知道答案,请告诉我。谢谢 现行守则如下: await BluetoothEscposPrinter.printColumn( columnWidths, [ BluetoothEscposPrinter.ALIGN.LEFT, BluetoothEscposPrinter.ALIGN.LEFT, B

我正在使用(本地蓝牙escpos打印机)打印带有磅符号“₤”的收据。但我得到的是“?”。如果有人知道答案,请告诉我。谢谢

现行守则如下:

await BluetoothEscposPrinter.printColumn(
        columnWidths,
        [
            BluetoothEscposPrinter.ALIGN.LEFT,
            BluetoothEscposPrinter.ALIGN.LEFT,
            BluetoothEscposPrinter.ALIGN.CENTER,
            BluetoothEscposPrinter.ALIGN.RIGHT,
        ],
        ['', '', 'Total: ','₤'+(totalAmount).toFixed(2)],{}
);

这似乎是一个老问题。最好找其他的包裹。这取决于库和打印机,但打印机代码页是支持磅符号的代码页吗?要打印的字符串是否也经过编码以匹配代码页上的字符?比如这些文章,@nisanth reddy,这是最后一个选项。@kunif已经测试了这两个示例,先生。您可以从其他人那里获得一些建议,添加您进行这些测试时的来源以及结果。