![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
From: Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net Newsgroups: microsoft.public.dotnet.internationalization Subject: System.Text.Latin1Encoding Date: Tue, 24 Jan 2006 14:32:03 -0500 In an app I use the following statement in a class called Application: public static readonly System.Text.Encoding defaultEncoding = System.Text.Encoding.GetEncoding("iso-8859-1"); When debugging, if I type the following in the command window: Debug.Print Application.defaultEncoding I get a list of data beginning with the following lines. {System.Text.Latin1Encoding} [System.Text.Latin1Encoding]: {System.Text.Latin1Encoding} System.Object: {System.Text.Latin1Encoding} ASCII: {System.Text.ASCIIEncoding} asciiEncoding: {System.Text.ASCIIEncoding} BigEndianUnicode: {System.Text.UnicodeEncoding} bigEndianUnicode: {System.Text.UnicodeEncoding} BodyName: "iso-8859-1" ChineseSimp: 52936 Apparently there is something called System.Text.Latin1Encoding, but this appears not to be accessible to the developer, so I guess it's private or protected. Why would this and all the other traditional encodings not have been made directly available in the same way as System.Text.UTF8Encoding, rather than requiring us to rely on a character string to get the encoding we want? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |