如何正确大写的希腊词语的.NET? [英] How to correctly uppercase Greek words in .NET?

查看:173
本文介绍了如何正确大写的希腊词语的.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有它运行在世界各地不同客户的ASP.NET应用程序。在这个应用中,我们有字典为每一种语言。在字典中,我们必须以小写的话,有时我们$ C $下印刷的原因大写吧。

We have ASP.NET application which runs different clients around the world. In this application we have dictionary for each language. In dictionary we have words in lowercase and sometimes we uppercase it in code for typographic reasons.

var greek= new CultureInfo("el-GR");
string grrr = "Πόλη";
string GRRR = grrr.ToUpper(greek); // "ΠΌΛΗ"

现在的问题是:

The problem is:

...如果您使用的是大写字母   那么他们必须出现像这样:F.E.   ΠΟΛΗ并没有像ΠΌΛΗ,相同的所有   用大写字母换句话说

...if you're using capital letters then they must appear like this: f.e. ΠΟΛΗ and not like ΠΌΛΗ, same for all other words written in capital letters

那么,这可能一般为大写的希腊字正确的.NET?或者我应该写我自己的自定义算法希腊大写?

So is it possible generically to uppercase Greek words correctly in .NET? Or should I wrote my own custom algorithm for Greek uppercase?

他们是如何解决这个问题在希腊?

How do they solve this problem in Greece?

推荐答案

我怀疑你将不得不编写自己的方法,如果 EL-GR 没有按'吨做你想做的。不要以为你需要去创建一个自定义的CultureInfo ,如果这是你所需要的。这是很好的,因为那看起来很繁琐。

I suspect that you're going to have to write your own method, if el-GR doesn't do what you want. Don't think you need to go to the full length of creating a custom CultureInfo, if this is all you need. Which is good, because that looks quite fiddly.

我不建议你做的是阅读这迈克尔·卡普兰的博客文章和其他任何相关的,你可以通过他找到 - 他一直在和写作国际化和语言的问题,好多年和他的评论是呼吁在Windows任何此类问题的第一点

What I do suggest you do is read this Michael Kaplan blog post and anything else relevant you can find by him - he's been working on and writing about i18n and language issues for years and years and his commentary is my first point of call for any such issues on Windows.

这篇关于如何正确大写的希腊词语的.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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