Celsius (℃)在使用’Zebra’扫描仪扫描QR条码时打印为’Unknown’的原因是什么?

huangapple go评论89阅读模式
英文:

Why is Celsius (℃) printed as ' Unknown ' when taking a QR Barcode with a 'Zebra' scanner?

问题

我正在使用一个包含长字符串的QR条码,单位是逗号。
摄氏度(℃)是问题。

为什么使用‘Zebra’扫描仪扫描QR码时,摄氏度(℃)会被打印为‘Ž’或‘℃’?

问题是“+100℃”。

如果选择UTF-8,它会被删除(+100)。

我不知道哪里出了问题。

第6天,我以为这是一项简单的工作,但它正在变成主要项目。

我尝试的是
国家代码页 - UTF-8,
非CJK UTF-8仿真输出

打印机 - ZD421
扫描仪 - DS4308

string qrcode = "+100℃";
string zplCommand = "^XA^MD20^MTT^PW550^LL350^LS10";
zplCommand += "^FO100,030^BQN,3,3^FD " + qrcode + "^FS";
zplCommand += "^XZ";

打印代码是(参数是zplCommand)
'RawPrinterHelper -> byte[] buffer = Encoding.UTF8.GetBytes(szZplCode);

英文:

I am using a QR barcode containing a long string in "," (comma) units.
Celsius (°C) is the problem.

Why is Celsius (℃) printed as ' Ž ' or ' ℃ ' when taking a QR Bacode with a 'Zebra' scanner?

problem is "+100℃"

If UTF-8 is selected, it is deleted. ( +100 )

I don't know what's wrong.

Day 6 I thought it was a simple job, but. It is becoming the main project.

i try is
Country Code Pages - UTF-8,
Non-CJK UTF-8 Emulation Output

printer - ZD421
scanner - DS4308

string qrcode = "+100℃"; 
string zplCommand = "^XA^MD20^MTT^PW550^LL350^LS10"; 
zplCommand += "^FO100,030^BQN,3,3^FD " + qrcode + "^FS"; 
zplCommand += "^XZ"; 

and print code is (param is zplCommand)
'RawPrinterHelper -> byte[] buffer = Encoding.UTF8.GetBytes(szZplCode);

答案1

得分: 0

以下是翻译好的部分:

(This is a translated text.)
使用帮助过“comment”的人的信息和期望的部分。
我尝试了几种方法。

https://supportcommunity.zebra.com/s/article/Printing-with-International-Characters?

在整篇文章中使用“^CI27”,
进行“转义”处理。

谢谢

before ""^XA^MD20^MTT^PW550^LL350^LS10"";
after ""^XA^CI27^MD20^MTT^PW550^LL350^LS10"";

英文:

(This is a translated text.)
Using the information and expected parts of those who helped with 'comment'.
I've tried several things.

https://supportcommunity.zebra.com/s/article/Printing-with-International-Characters?

Use '^CI27' throughout the article,
'escape' processing.

thank you

before "^XA^MD20^MTT^PW550^LL350^LS10";
after "^XA^CI27^MD20^MTT^PW550^LL350^LS10";

huangapple
  • 本文由 发表于 2023年7月3日 11:35:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/76601710.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定