如何确定一个CultureInfo的实例支持拉丁字符 [英] How to determine if a CultureInfo instance supports Latin characters

查看:150
本文介绍了如何确定一个CultureInfo的实例支持拉丁字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能确定是否<一href=\"http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx\"><$c$c>CultureInfo比如,我用是基于拉丁字符集或工作不?

Is it possible to determine if the CultureInfo instance that I am working with is based on a Latin character set or not?

推荐答案

我相信你可以使用 CultureInfo.TextInfo.ANSI codePAGE
有只有这么多的这些(这里详细: http://msdn.microsoft.com/ EN-US / goglobal / bb964654 )。

I believe you can use the CultureInfo.TextInfo.ANSICodePage. There are only so many of these (detailed here: http://msdn.microsoft.com/en-us/goglobal/bb964654).

您大多只是需要检查它的值是1252或1250

You mostly just need to check that it's value is either 1252 or 1250

这篇关于如何确定一个CultureInfo的实例支持拉丁字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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