Convert Traditional Chinese to Simplified Chinese in .NET (Vise versa)

Add Reference Microsoft.VisualBasic

Convert Traditional Chinese to Simplified Chinese

using Microsoft.VisualBasic;

string input = "繁體中文";
string output = Strings.StrConv(input, VbStrConv.SimplifiedChinese);  // 繁体中文

Convert Simplified Chinese to Traditional Chinese

using Microsoft.VisualBasic;

string input = "简体中文";
string output = Strings.StrConv(input, VbStrConv.TraditionalChinese);  // 簡體中文

References:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s