Microsoft KB Archive/308094

= BUG: GetEncoding Does Not Support 50229 =

Article ID: 308094

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0
 * Microsoft .NET Framework Class Libraries 1.1
 * Microsoft .NET Framework Class Libraries 1.0

-



This article was previously published under Q308094



The following .NET Framework Class Library namespaces are referenced in this article:
 * System.Text



SYMPTOMS
Applications that are built with the Base Class Libraries that use GetEncoding on Code Page 50229 or Encoding Name ENC50229 may generate an exception error.

GetEncoding has two overloaded methods: one accepts an integer value and one accepts a string value. Calls to the GetEncoding method with a string value of &quot;ENC50229&quot; result in the following exception error message:

'An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll

'Additional information: enc50229 is not a supported encoding name.

Calling the GetEncoding method with an integer value of 50229 results in the following exception error message:

'An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll

'Additional information: The ISO-2022-CN Encoding (Codepage 50229) is not supported.An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll

'Additional information: The ISO-2022-CN Encoding (Codepage 50229) is not supported.



CAUSE
GetEncoding 50229 is not supported in the current version of the Common Language Runtime.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Proper support of this encoding requires the implementation of specialized features that are not used by any other supported encoding. Because this encoding is rarely used, support for it is not available in this version.

Additional query words: kbreadme

Keywords: kbbug kbfix kbreadme KB308094

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.