Culture-Sensitive C# Property
using System.Text
Encoding.BigEndianUnicode;
Internationalization (I18n) Property Overview
Returns an encoding for the UTF-16 format using the big endian byte order, where the most
significant byte of the Unicode character comes first, followed by the least significant byte.
See Microsoft's
MSDN online documentation for more information.
I18n Issues
Use of this property probably does not pose an I18n problem.
Globalyzer detects it by default because during the internationalization process
it is important that you are aware of all of the places in your code where you are
performing character encoding
conversions. Further, if Encoding.BigEndianUnicode is being used to convert character
data intended for use on a Windows platform, it is important that the endian
value be properly passed to the constructor. Macintosh systems, for example, internally
use UTF-16 big endian byte order, while Windows systems use little endian, which is the
opposite byte ordering.
C# Encoding Information
|