以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]串口通讯汉字内码发送  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=100096)

--  作者:dengmj
--  发布时间:2017/5/4 17:34:00
--  [求助]串口通讯汉字内码发送
请问:
在FOXTABLE有什么函数或者有什么其他办法,
可以直接把中文字符串转成字节数组的,编码格式是内码,
比如:“中”是0xd6d0
而unicode和utf8,我的设备里面没有相应字库。
谢谢。


--  作者:有点色
--  发布时间:2017/5/4 18:00:00
--  

参考

 

Dim str As String = "中"
Dim d As Integer = Asc(str)

msgbox(d)
msgbox(DecToHex(d))