Internationalization and localization tools


Locale-Sensitive VB.NET Class

using System.Text

Public Class ASCIIEncoding Inherits Encoding

Internationalization (I18n) Class Overview

The ASCIIEncoding class encodes Unicode characters as single 7-bit ASCII characters. This encoding only supports character values between U+0000 and U+007F.

See Microsoft's MSDN online documentation for more information. Also, see specific MSDN documentation on Encoding Properties.

I18n Issues

ASCII as a character set is largely inadequate for internationalized applications because it can be used to encode only English characters. Consider using UTF8Encoding or UnicodeEncoding instead. The Windows code page that corresponds to ASCIIEncoding is 20127. This class inherits from the Encoding class.

As a developer, you might have good reason to call the ASCIIEncoding constructor; however Globalyzer will detect it anyway. If you have determined that the call does not pose I18n problems, you can uncheck the method in the Locale-Sensitive Method list so that Globalyzer will ignore it during the next scan of your source code.

Suggested Replacement

Use UTF8Encoding or UnicodeEncoding which support Unicode characters.

VB.NET Encoding Information

 

Lingoport internationalization and localization services and software