42Life
V2EX  ›  微信

微信小程序 蓝牙打印机

  •  
  •   42Life · Jul 25, 2018 · 3453 views
    This topic created in 2866 days ago, the information mentioned may be changed or developed.

    已经连接到打印机了,但是打印出乱码。 现在的问题是小程序的蓝牙接口要求写入数据为 ArrayBuffer 形式,而打印机那边需要接受 gb2312 的格式。 我将打印命令保存在本地,应该如何将字符串转换成 gb2312,再转换成 ArrayBuffer? 大佬们求救~

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1436 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 16:48 · PVG 00:48 · LAX 09:48 · JFK 12:48
    ♥ Do have faith in what you're doing.