我有一个 Bixolon SRP-330II PosPrinter,我正在使用它的官方 javascript SDK。其中有更改字符集的功能,但我测试了27
哪些是阿拉伯语Farsi
,哪些是阿拉伯语。仍然只打印英文字符就可以了,其他字符就可以了。有什么帮助吗?1256
856
?????
这是我的代码,它是其文档示例的简化版本
<!DOCTYPE html>
<script src="js/bxlcommon.js"></script>
<script src="js/bxlpos.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<title>mPrint Server Sample</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/responsive.css" />
<link rel="stylesheet" type="text/css" href="css/modules.css" />
</head>
<script type="text/javascript">
var issueID = 1;
function viewResult(result) {
console.log(result);
}
function PrintReceipt() {
setPosId(issueID);
checkPrinterStatus();
setCharacterset(1256)
printText("\n\nايبن نكسب ههثب ني نسشش نيى\n\n\n", 0, 0, false, false, false, 0, 1);
printText("\n\n\n\n\n", 0, 0, false, false, false, 0, 0);
cutPaper(0);
var strSubmit = getPosData();
console.log(strSubmit);
issueID++;
requestPrint('Printer1', strSubmit, viewResult);
return true;
}
</script>
<body>
<section>
<div id="contain">
<button id="print_bt" class="ripple" style="margin-top:15px" onclick="PrintReceipt();"> Print receipt </button>
</div>
</section>
</body>
</html>