42Life
V2EX  ›  微信

微信小程序 蓝牙打印机

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

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

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