473,394 Members | 1,295 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to send unicoded sms through pc and gsm(urgent)

i'm working on a project to send sms through pc and gsm modem(mobile)
and every thing is ok, i succeded to send but english sms only,
when i tried to send arabic the message sent with errors in encoding the arabic characters.
my mobile is nokia n73, it supports these character sets ofencoding

this is sample code i entered in the hyper terminal,
and surely i tested in c# but also failed

+CSCS:("UCS2","GSM","PCCP437","PCDN","IRA","HEX"," 8859-1")


AND I knew that only(ucs-2, gsm, pccp437) support arabic language
but c# doesn't support anyone of them
i tried in c# getEncoding to use(utf-8 or ("utf-16 as it is similar somehow to the ucs2")
also, iso-8859-9 and 8859-6 and windows-1256)
[[[[ port.Encoding = Encoding.GetEncoding("utf-8"); ]]]]]

but useless

i tried to use this code in hyper terminal and in c# code(with the past character sets like:
>message الرساله+ctrlZ

also the message recieve with encoding errors

i don't know what i should do, but now i'm searching to add ucs-2 character set page to visual c#, however it failed even to send from the hyper terminal.

hint:: i tried to send from demo program called (headwind sms)and it sent succefully the arabic message that means no problems in my mobile.

could anyone help me,please??, or tell me about adding encoding face.

and sorry for writing so much..
Aug 30 '09 #1
3 14804
Same problem face me too today
and I solved it like this :
first if your mobile support Hex mode
(you can know by writting : AT+CSCS=? )

then make the mode Hex as follows:
then execute this command :

now you are ready to send the arabic message but after u make some encoding
for example "مرحبا" will become "06450631062D06280627"

try this code to convert text to unicode:

UnicodeEncoding uni = new UnicodeEncoding();
byte[] encodedBytes = uni.GetBytes(txtMessage.Text);
string text = "";
for (int i = 0; i < encodedBytes.Length; i += 2)
text += string.Format("{0:X2}", encodedBytes[i + 1]) + string.Format("{0:X2}", encodedBytes[i]);
now text contain the message which is ready to send

I hope it will solve ur problem

Dec 7 '09 #2
648 Expert 512MB
Saeed welcome to Bytes, thanks for this great reply! Hope to see more useful posts from you!
Dec 14 '09 #3
thanks Saeed,
but when I write this command


get ERROR?
Attached Images
File Type: jpg unti88tled.jpg (23.1 KB, 1239 views)
Oct 1 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Ray Paseur | last post by:
We broadcast email messages with PHP scripts, but sometimes email is not timely and we would like to send something that could get there faster. Can anyone tell me about how to send Instant...
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
by: pradeepm | last post by:
Hi If anybody have B+ trees algorithm or coding.Pls send me. Very urgent Thanks in advance /Pradeep
by: pradeepm | last post by:
Hii Anybody have source code for JAVA B+ trees.Pls send me.Very urgent.Thanks in advance.
by: Mike | last post by:
Hi, I'm wondering if I can do this with ASP.NET?
by: jagmonni | last post by:
hi everybody, i need to do a website in php so i need a functionality of sending SMS to mobiles. So could anyone please send me the website link for registering the SMS Gateway in India. ...
by: amar elzaman | last post by:
peace be upon u friends i'm working on a project to send sms through pc and gsm modem(mobile) and every thing is ok, i succeded to send but english sms only, when i tried to send arabic the...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.