Create a new PhoneBookEntry as a Unicode by GSMCOMM

ismail4pc

New member
Joined
Oct 12, 2013
Messages
4
Programming Experience
Beginner
Hello
I am use GSMComm to read and write phonebook in gsm modem
and this the link to this control
SMS libraries (for GSM phones)
when I try to Create a new PhoneBookEntry as a Unicode, I change the comm.SelectCharacterSet To UCS2 and convert the text "Test" to UCS2 Format and it be "0054006500730074" but It take the first charachter only "0054" like this screenshot
 

Attachments

  • untitled.bmp
    1.4 MB · Views: 25
Are you sure that you're actually supposed to convert your text to to those numbers? That looks more like how the data would be stored after you gave it the original text. When you write text to a file on a PC, the encoding affects what bytes get stored in the file but the actual characters that you send for writing don't change.

Presumably that's four double-byte characters so you should probably give it the original text and then it will convert that to the eight bytes 00 54 00 65 00 73 00 74 for storage and/or transmission. Have you tried just using the the original text, i.e. "Test"?
 
Thank you Mr jmcilhinney for your reply
there is more thank one way to write/create phonebook entry Including
original text the mode is "IRA" and there is a unicode mode is "UCS2" that mode for unicode and original text too but I need to use UCS2 mode because I want to create unicode with defferent language but in the post i teyp "Test" but I use this for Arabic Language
thanks
 
Arabic charachter

There is no problem when create phonebook entry with "IRA" mode but when the text be Arabic show symbol like screenshot
 

Attachments

  • gsm.bmp
    1.4 MB · Views: 23
Also notice this is a VB.Net forum. In most cases you need to attend a C# forum for help with your C# projects.
 
Back
Top