-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextEncoding.cs
More file actions
26 lines (24 loc) · 823 Bytes
/
TextEncoding.cs
File metadata and controls
26 lines (24 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
namespace DailyReportAssistant
{
public class TextEncoding
{
public TextEncoding() { }
public String encodeName { set; get; }
public Encoding encoding { set; get; }
}
public class TextEncodingList : ObservableCollection<TextEncoding>
{
public TextEncodingList()
{
this.Add(new TextEncoding { encodeName = "ANSI/GB2312", encoding = Encoding.Default }); // 936
this.Add(new TextEncoding { encodeName = "ANSI/GB18030", encoding = Encoding.GetEncoding(54936) }); // 54936
this.Add(new TextEncoding { encodeName = "UTF8", encoding = Encoding.UTF8 }); // 65001
this.Add(new TextEncoding { encodeName = "Unicode/UCS2LE", encoding = Encoding.Unicode }); // 65005 ??
}
}
}