如何更改SerialDevice .Encoding的编码? [英] How can I change the encoding for the SerialDevice .Encoding?
问题描述
SerialDevice(DataWriter)在0到255范围内发送字节,但是大于127的值,即128到255,发送的次数与预期的不同。
当我收到大于127的DataReader值时,我抛出此异常"目标多字节代码页中不存在unicode字符的映射"< div class ="h2_lin">解决方案
< blockquote>
您好AmericoAC,
您需要编码吗?您是否尝试过示例应用程序?
https:// developer.microsoft.com/en-us/windows/iot/samples/serialuart
此致,
Sending bytes by SerialDevice (DataWriter) in a range of 0 to 255 but values greater than 127, that is, 128 to 255 are sent somewhat differently than expected.
When I receive in DataReader values greater than 127 I throw this exception "no mapping for the unicode character exists in the target multibyte code page"
Hi AmericoAC,
Do you require encoding? Have you tried the sample application?
https://developer.microsoft.com/en-us/windows/iot/samples/serialuart
Sincerely,
这篇关于如何更改SerialDevice .Encoding的编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!