Ejemplo n.º 1
0
        public override string ReadTextUnicode()
        {
            short  textLength = ReadShort <LittleEndianConverter>();
            string value;

            if (textLength == 0)
            {
                value = string.Empty;
            }
            else
            {
                //Read the string and get rid of the empty bytes
                value = ReadString(textLength,
                                   TextEncoding.GetListedEncoding(CodePage.Windows1252))
                        .Replace("\0", "");
            }
            return(value);
        }