Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CodePages.cs
1
using
System;
2
using
System.Text;
3
4
namespace
Waher.Service.IoTBroker.Encodings
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
}
Waher.Service.IoTBroker.Encodings.CodePages
Definition:
CodePages.cs:7
Waher.Service.IoTBroker.Encodings.Windows1252
Definition:
Windows1252.cs:8
Waher.Service.IoTBroker.Encodings
Definition:
CodePages.cs:5
Waher.Service.IoTBroker
Encodings
CodePages.cs
Generated by
1.9.5