Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Charset Encoding


Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2012, 02:31 AM
usvpn usvpn is offline
Regular
 
Join Date: Apr 2010
Posts: 52
Default Charset Encoding


Good morning,
I need to pass the Charset Encoding name which is defined in the 2nd column of the below table:

http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

Like windows-1256 or utf-8...

However, I know that not all of them are applicable for my Windows application which only runs on Intel x86 or x64 platforms and only WinXp, Vista, 7 OS.
So which ones are applicable for me?
For example, some MAC encoding, like x-mac-japanese or x-mac-arabic are for MAC only? Or can be used in Windows too?
Or also for UTF-32, it always returns System.NotSupportedException
Reply With Quote
  #2  
Old 04-25-2012, 05:50 AM
AtmaWeapon's Avatar
AtmaWeapon AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,505
Default

I don't understand the question. What are you trying to do?
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #3  
Old 04-25-2012, 06:50 AM
usvpn usvpn is offline
Regular
 
Join Date: Apr 2010
Posts: 52
Default

I am using an email component, it needs me to set the EmailMessage.CharSet property according to the supported values from this table:

http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

I should give all the encoding in above page to my user and ask him to select!
Just want to check if all of those are supported in Intel x86 or x64 platforms / WinXp, Vista, 7 OS?
Reply With Quote
  #4  
Old 04-25-2012, 07:43 AM
PlausiblyDamp's Avatar
PlausiblyDamp PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 1,812
Default

Out of interest why do you need the user to select this? If you are dealing with international character sets then the easiest solution is to just use Unicode rather than mess around with ANSI character sets.

Even if you do need this to be set are you sure the users will be able to get this right anyway?

The table at the bottom of that link however explains which ones are supported by .Net natively and which ones aren't.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #5  
Old 04-25-2012, 08:06 AM
AtmaWeapon's Avatar
AtmaWeapon AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,505
Default

Don't bother with ANSI text at all if you can avoid it. Use UTF-8 or UTF-16 until you have a customer requirement to support ANSI; even then I'd fight to only support as few ANSI character sets as possible. That's been the battle since the early 90s, and both of those character sets can cover everything. Proliferation of ANSI code pages just keeps things complicated for even longer.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->