This should work:
Dim b As Byte() = System.Text.Encoding.Unicode.GetBytes(value)
Hi KMatle.
Is this vb syntax? The b4a side is ok, and here's the problem:
1- b4a app sends SMS to a gsm modem
2- gsm modem sends the sms to vb app
3- if sms is n English then no problem, the English text appear correctly in vb text box
4- if sms is in Arabic then the modem converts each letter (char) to 2 bytes and a long array of bytes equal to the sms length * 2 is sent vb app.
Required: to convert the byte array back to Arabic text using vb.
Looks like a puzzle sorry.