Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CodePages.cs
1using System;
2using System.Text;
3
5{
6 public class CodePages : EncodingProvider
7 {
8 private static readonly Windows1252 windows1252 = new Windows1252();
9
10 public override Encoding GetEncoding(int codepage)
11 {
12 switch (codepage)
13 {
14 case 1252: return windows1252;
15 default: return null;
16 }
17 }
18
19 public override Encoding GetEncoding(string name)
20 {
21 switch (name.ToUpper())
22 {
23 case "WINDOWS-1252": return windows1252;
24 default: return null;
25 }
26 }
27 }
28}