#NEWLINE# def decodeSM( self , pdu ) : #NEWLINE# #INDENT# data_coding = pdu . params [ 'data_coding' ] #NEWLINE# ( smBytes , udhBytes , smStrBytes ) = self . splitSM ( udh ) #NEWLINE# udh = self . decodeUDH ( udhBytes ) #NEWLINE# if ( data_coding . scheme == DataCodingScheme . DEFAULT ) : #NEWLINE# #INDENT# unicodeStr = None #NEWLINE# if ( data_coding . schemeData == DataCodingDefault . SMSC_DEFAULT_ALPHABET ) : #NEWLINE# #INDENT# unicodeStr = unicode ( smStrBytes , 'ascii' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( data_coding . schemeData == DataCodingDefault . IA5_ASCII ) : #NEWLINE# #INDENT# unicodeStr = unicode ( smStrBytes , 'ascii' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( data_coding . schemeData == DataCodingDefault . UCS2 ) : #NEWLINE# #INDENT# unicodeStr = unicode ( smStrBytes , 'UTF-16BE' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( data_coding . schemeData == DataCodingDefault . LATIN_1 ) : #NEWLINE# #INDENT# unicodeStr = unicode ( smStrBytes , 'latin_1' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# if ( unicodeStr is not None ) : #NEWLINE# #INDENT# return ShortMessageString ( smBytes , unicodeStr , udh ) #NEWLINE# #UNINDENT# #UNINDENT# raise NotImplementedError ( ( "I don't know what to do!!! Data coding %s" % str ( data_coding ) ) )