Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / July 2005

Tip: Looking for answers? Try searching our database.

Convert GB2312 string into Unicode?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wencheng Magiya - 19 Jul 2005 08:57 GMT
Hi all,

How to convert a string in GB2312 encoding into Unicode encoding? I'm using
VB.NET.
Michael (michka) Kaplan [MS] - 19 Jul 2005 15:18 GMT
Just create an Encoding object by using Encoding.GetEncoding(936) and then
you can use GetString() to convert gb2312 to Unicode and GetBytes() to
covert Unicode to gb2312....

Signature

MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

> Hi all,
>
> How to convert a string in GB2312 encoding into Unicode encoding? I'm
> using VB.NET.
Wencheng Magiya - 20 Jul 2005 01:44 GMT
That's very helpful.
Thanks MichKa!

> Just create an Encoding object by using Encoding.GetEncoding(936) and then
> you can use GetString() to convert gb2312 to Unicode and GetBytes() to
[quoted text clipped - 4 lines]
>> How to convert a string in GB2312 encoding into Unicode encoding? I'm
>> using VB.NET.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.