Пример #1
0
        static EncodingDictionary()
        {
            Current = new EncodingDictionary();
            var d = Current._Encodings;

            d["UTF7"]   = Encoding.GetEncoding("UTF-7");
            d["UTF8"]   = Encoding.UTF8;
            d["UTF32"]  = Encoding.GetEncoding("utf-32");
            d["CP1252"] = Encoding.GetEncoding("windows-1252");
        }
Пример #2
0
        static EncodingDictionary()
        {
            Current = new EncodingDictionary();
            var d = Current._Encodings;

            d["UTF8"] = Encoding.UTF8;
            AddEncoding("UTF7", "UTF-8");
            AddEncoding("UTF32", "utf-32");
            AddEncoding("CP1252", "UTF-8");
        }