Skip to content

A .NET System.Text.Encoding implementation for the GSM character set

License

Notifications You must be signed in to change notification settings

Caspeco/.NET-GSM-Encoding

 
 

Repository files navigation

GSM Encoding class for C#
-------------------------

Converts characters between the .NET internal Unicode encoding and the GSM03.38 alphabet.

Licensed for use under the ISC license, a full copy can be found in License.txt.

Sample for converting GSM encoding to UTF-8
-------------------------------------------

string body = "GSM 03.38 Text to convert";

Encoding gsmEnc = new Mediaburst.Text.GSMEncoding();
Encoding utf8Enc = new System.Text.UTF8Encoding();

byte[] gsmBytes = utf8Enc.GetBytes(body);
byte[] utf8Bytes = Encoding.Convert(gsmEnc, utf8Enc, gsmBytes);
body = utf8Enc.GetString(utf8Bytes);

About

A .NET System.Text.Encoding implementation for the GSM character set

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published