in my case some times messages comes from users in pure English and some times mixed with Arabic and English .
i know the correct coding for araic is UC2 and if english is Ascii or default Coding , but how to check the message to select the correct Coding ?
my Sample Code
Code: Select all
Private Sub client_evDeliverSm(ByVal sender As Object, ByVal data As DeliverSm)
Dim m_Message As String
'Check if we received Delivery Receipt
If data.MessageType = MessageTypes.SMSCDeliveryReceipt Then
'dont do anything for delivery reports
Else
'default message
data.DataCoding = DataCodings.Default
m_Message = data.MessageText
End If
End Sub