Locale-Sensitive C# Property
using System.Text
Encoding.ASCII;
Internationalization (I18n) Property Overview
Retrieves an encoding for the ASCII (7-bit) format.
See Microsoft's
MSDN online documentation for more information.
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 Encoding.Unicode or
Encoding.UTF8 instead.
As a developer, you might have good reason to use the Encoding.ASCII
property; 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
Encoding.Unicode;
C# Encoding Information
|