PC Review


Reply
Thread Tools Rate Thread

Convert simplified Chinese/UTF-8 string to traditional Chinese (Big5)

 
 
David
Guest
Posts: n/a
 
      8th Nov 2004
Hi, All,
I need to convert a simplified Chinese or UTF-8 string to a traditional
Chinese using C#. I found a very good link
(http://www.dotnet247.com/247referenc...45/229725.aspx) which gave me
some suggestion. However, it was in VB.Net and it had compile problem even
if I included Microsoft.VisualBasic in the reference. Does anyone know a
similar solution for my problem? Thank you very much in advance.


 
Reply With Quote
 
 
 
 
Morten Wennevik
Guest
Posts: n/a
 
      8th Nov 2004
Hi David,

I'm not familiar with the VB methods mentioned in the article,
but you should be able to convert the strings just fine using Encodings
and byte arrays.

Encoding original = Encoding.UTF8;
Encoding target = Encoding.GetEncoding("Big5");

byte[] data = original.GetBytes(text);
string convertedString = target.GetString(data);

--
Happy Coding!
Morten Wennevik [C# MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Traditional Chinese into Simplified Chinese in Outlook Patrick MKW Microsoft Outlook Discussion 0 7th Jan 2008 05:11 AM
Convert Traditional Chinese to Simplified Chinese in Powerpoint =?Utf-8?B?TVMgUG93ZXJwb2ludCBDaGluZXNlIFRyYW5zbGF0 Microsoft Powerpoint 1 31st Jul 2006 03:22 PM
How to convert Traditional Chinese to Simplified Chinese =?Utf-8?B?QUE=?= Microsoft Word Document Management 1 26th Sep 2005 01:19 PM
Viewing BIG5 Traditional Chinese and GB2312 Simplified Chinese on Outlook 2003 OS5 Microsoft Outlook 0 16th Nov 2004 03:15 AM
How to convert traditional chinese to simplified chinese & vise ve =?Utf-8?B?TGVvIFRhbQ==?= Microsoft Word Document Management 0 2nd Jul 2004 04:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.