转换的Uni code字符以ASCII最接近(最相似)字符(.NET)字符、最接近、相似、Uni

由网友(娇柔)分享简介:我如何以不同的Uni code字符转换为与其最接近的ASCII等效?像 - >答:我用Google搜索,但没有找到合适的解决方案。诀窍 Encoding.ASCII.GetBytes(A)[0] 没有工作。 (结果为?)。 How do I to convert different Unicode character...

我如何以不同的Uni code字符转换为与其最接近的ASCII等效?像 - >答:我用Google搜索,但没有找到合适的解决方案。诀窍 Encoding.ASCII.GetBytes(A)[0] 没有工作。 (结果为)。

How do I to convert different Unicode characters to their closest ASCII equivalents? Like Ä -> A. I googled but didn't find any suitable solution. The trick Encoding.ASCII.GetBytes("Ä")[0] didn't work. (Result was ?).

我发现,有一类恩codeR 具有后备属性,是完全的当字符不能转换的情况下,却实现(恩coderReplacementFallback )是愚蠢的,并转换为

I found that there is a class Encoder that has a Fallback property that is exactly for cases when char can't be converted, but implementations (EncoderReplacementFallback) are stupid and convert to ?.

任何想法?

推荐答案

如果它仅仅是去掉href="http://en.wikipedia.org/wiki/Diacritic">变音符号中的

阅读全文

相关推荐

最新文章