如何添加支持并使用IoT Core中的所有代码页? [英] How to add support and use all code page in the IoT Core?

查看:54
本文介绍了如何添加支持并使用IoT Core中的所有代码页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

默认情况下,IoT Core映像支持多少代码页?我想支持所有代码页,代码页列表在这里:  代码页标识符,所以
我可以使用MultiByteToWideChar和WideCharToMultiByte函数在基于Windows代码页和Unicode字符串的字符串之间进行转换。

How many code page of the IoT Core image support by default? I want to support all the code page, the code page list here: Code Page Identifiers, so I can use the MultiByteToWideChar and WideCharToMultiByte functions to convert between strings based on Windows code pages and Unicode strings.

有一个" TextScript Enum "在"Windows.UI.Text"中UWP API参考的命名空间,但我想在无头模式的后台
app中转换字符串。是否有UWP API可以做到这一点?

There is a "TextScript Enum" in the "Windows.UI.Text" namespace of the UWP API reference, but I want to convert the string in a background app of the headless mode. Is there UWP API can do this?

最好的问候。

推荐答案

你好,moyanming,

Hello moyanming,

Windows桌面的.NET Framework支持大量的Unicode和代码页编码,如帖子(代码页标识符)中所述。但是,通用Windows平台和.NET Native仅支持ASCII,ISO-8859-1,UTF-7,UTF-8,
UTF-16和UTF-16LE,UTF-16BE,UTF-32和UTF-32LE,UTF-32BE。除了代码页20127之外,不支持代码页编码。请参阅此链接(https://msdn.microsoft.com/en-us/library/mt643901(v = vs.111).aspx#Anchor_4);

The .NET Framework for the Windows desktop supports a large set of Unicode and code page encodings, as mentioned in your post(Code Page Identifiers). But Universal Windows platform and .NET Native support only ASCII, ISO-8859-1, UTF-7,UTF-8, UTF-16 and UTF-16LE, UTF-16BE, UTF-32 and UTF-32LE, UTF-32BE. Other than code page 20127, code page encodings are not supported. Please refer to this link(https://msdn.microsoft.com/en-us/library/mt643901(v=vs.111).aspx#Anchor_4);

您可以使用
System.Text.Encoding
转换字符串中的字符串或无头应用。

You can use System.Text.Encoding to convert the string in headed or headless app.

最好的问候,

迈克尔。


这篇关于如何添加支持并使用IoT Core中的所有代码页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆