Documentation ¶
Overview ¶
Package pdutext provides text conversion for PDU fields.
See 2.2.2 from http://opensmpp.org/specs/smppv34_gsmumts_ig_v10.pdf for details.
pdutext supports Latin1 (0x03) and UCS2 (0x08).
Latin1 encoding is Windows-1252 (CP1252) for now, not ISO-8859-1. http://www.i18nqa.com/debug/table-iso8859-1-vs-windows-1252.html
UCS2 is UTF-16-BE. Here be dragons.
TODO(fiorix): Fix this.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Codec ¶
type Codec interface { // Type returns the value for the data_coding PDU. Type() DataCoding // Encode text. Encode() []byte // Decode text. Decode() []byte }
Codec defines a text codec.
type DataCoding ¶
type DataCoding uint8
DataCoding to define text codecs.
const ( Latin1Type DataCoding = 0x03 UCS2Type DataCoding = 0x08 )
Supported text codecs.
Click to show internal directories.
Click to hide internal directories.