You Are Here:

Community: Developer Discussion Boards

#1 Old how to use messaging.sms_send to send a chinese msg? - 2007-01-22, 11:09

Join Date: Jan 2007
Posts: 2
yyp8015
Offline
Registered User
I use messaging.sms_send(telnum,msg) to send a chinese message,
but it display "????" on my phone !

to send english or number content is rigth, why?

i try to use "unicode" utf8 /utf-16-be ,but all so!

who can help me ? please !
Reply With Quote

#2 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-01-22, 17:23

Join Date: Aug 2004
Posts: 146
krtrivdi's Avatar
krtrivdi
Offline
Forum Nokia Champion
i have asked such questions many times nokia has never replied i m not happy atleast they should give answer yes or no!!!


||Kiran ||
Nokia E-65
Nokia 7610
Nokia N95 8GB
Nokia E90
Nokia 5110 !!
Nokia 6110i !!
Reply With Quote

#3 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-01-23, 10:12

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
hello all

So you want desesperately to send SMS 8 bits and 16 bits encoding ?
It's possible to change in the sms header encoding method to solve that problem.

Normally the sms encoding has 7 bits default. But you can set to unicode UCS16 with wmessaging module.
sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ;
And you can also set to 8 bits with umessaging module.
sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabet8Bit) ;

Now it's possible with one experimental module (messaging.pyd source code has been changed !)


EDIT : You can't use it for 3rd Sorry
but you can use it for 2nd


link :

EDIT : remove wrong link and false example



Are you happy now ?


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2007-03-06 at 20:33.
Reply With Quote

#4 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-01-23, 10:40

Join Date: Aug 2004
Posts: 146
krtrivdi's Avatar
krtrivdi
Offline
Forum Nokia Champion
Thank you cyke

This is the spirit you showed here. Since long i had asked few in my past threads. Now i got atleast some positive reply. People know sometime but dont want to disclose i think nokia forum is the place where exchange of information can really help to develop new things. I have 2nd edition 7610 so i will not be able to check this. Thanks you cyke you are a great person. Hope you will always provide such support to newbies like me.

Again thanks a lot you are great!

kiran


||Kiran ||
Nokia E-65
Nokia 7610
Nokia N95 8GB
Nokia E90
Nokia 5110 !!
Nokia 6110i !!
Reply With Quote

#5 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-19, 06:26

Join Date: Nov 2006
Posts: 31
zy82518
Offline
Registered User
hello cyke64
could you explain it in detail.
how to generate a .pyd file from .cpp source file
Last edited by zy82518 : 2007-02-19 at 08:09.
Reply With Quote

#6 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-19, 15:26

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi zy82518,

Please check the official Wiki. All steps for making a CPP extension are explained there.

http://wiki.opensource.nokia.com/pro...ing_extensions

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#7 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-19, 15:59

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
to zy :

Here's the source code of wmessagingmodule.cpp

Encoding default is 7 bits but you can change it to 8 bits or unicode with SetCharacterSet !

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#8 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-20, 12:58

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
cyke64, thanks! You saved us quite a bit of trouble with that. We'll see how that could be integrated with PyS60 mainline.
Reply With Quote

#9 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-20, 15:34

Join Date: Feb 2005
Posts: 35
janimr
Offline
Registered User
Hi cyke64,
in your code:

sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ;

was in pre 3.0 part, so it doesn't affect in 3rd ed sms sending.
I tryed that with 2.8 also, but same string was received as send.(when using normal letters)

I tryed to send Ř, with command:
messaging.sms_send(nbr1, u'\u0158')
and got ? for a result.

Could yyp8015 or krtrivdi help to clarify, what is the correct form to send chinese characters.

Regards,
janimr
Reply With Quote

#10 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-22, 14:52

Join Date: Feb 2005
Posts: 35
janimr
Offline
Registered User
Hi,
cyke64:s idea was right but SetCharacterSet was in wrong line and
it took really long for me to realise that (I tryed to make same thing much harder way).
cyke64:s code:
Code:
    sendOptions->SetDelivery(ESmsDeliveryImmediately); 
    header.SetSmsSettingsL(*sendOptions);
    // here we modified the character set : unicode
    // sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ;
    
    // here we modified the character set : 8 bits
    //  endOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabet8Bit) ;
    
    // default : 7 bits
But the SetCharacterSet should be before SetSmsSettingsL
Code:
sendOptions->SetDelivery(ESmsDeliveryImmediately);
sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ;
header.SetSmsSettingsL(*sendOptions);
With this you can send Ř, with command:
messaging.sms_send(nbr1, u'\u0158')
and chinese characters similar way if receiver phone knows how to read those.

I'm now trying to get this work also in 3rd edition.

- janimr
Reply With Quote

#11 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-22, 15:38

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Thanks Janimr for pointing my error

So it only works for 2nd but not for 3rd allthought I found a CSmsMessageSettings class also in 3rd headers

But messagingmodule doesn't use it in 3rd ed part

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#12 Old Question Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-28, 04:21

Join Date: Feb 2007
Posts: 43
jfml
Offline
Registered User
Hi, all of above:
Can I just write python scripts to implement sending chinese chars?
Reply With Quote

#13 Old Re: how to use messaging.sms_send to send a chinese msg? - 2007-02-28, 20:08

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Hey everybody

Look at this announce umessaging for sending unicode characters (for 2nd edition only !)

Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send a message to *.exe and process the msg? boyknight General Symbian C++ 1 2007-01-11 06:33
Send msg with Nokia Data Suite V3.0 through 5110 phone pan88 PC Suite API and PC Connectivity SDK 1 2003-06-30 15:46
MMS !How to Send Chinese on the MMSLibrary?? happyboy_02 Web Technologies and Multimedia Content- Web 技术和多媒体内容 9 2003-06-13 04:38
can the sample code send chinese short message? shibamo General Messaging 1 2002-10-21 09:39
How To Send A Chinese Short Message With Nokia PC Connectivity SDK ? budan General Messaging 0 2002-07-25 16:10

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ