BUG: GetEncoding Does Not Support 50229 (308094)



The information in this article 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 "ENC50229" 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.

Modification Type:MinorLast Reviewed:4/24/2003
Keywords:kbbug kbfix kbreadme KB308094