cuiweifu

神乎其神的设计

cuiweifu

cuiweifu

Persona Color Theme © - 2014 cuiweifu

.NET繁体到简体字符转换

7月 3 2014

Hello World

6月 26 2014
7月 3 2014

.NET繁体到简体字符转换

.NET下的从繁体中文转换成简体中文有个非常简便的方法就是采用VBString转换。代码如下:

1
2
3
4
5
6
7
void Main()
{	
	var word = "中華人民共和國";	
	 string simplified = Microsoft.VisualBasic.Strings
	 .StrConv(word, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 0);	 
	 simplified.Dump(word);
}

So, Easy。

6月 26 2014

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in trobuleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment