| Reply | « Previous Thread | Next Thread » |
|
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 ! |
|
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 !! |
|
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.
|
|
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 !! |
|
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.
|
|
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 |
|
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/ |
|
cyke64, thanks! You saved us quite a bit of trouble with that. We'll see how that could be integrated with PyS60 mainline.
|
|
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 |
|
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
![]() Code:
sendOptions->SetDelivery(ESmsDeliveryImmediately); sendOptions->SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ; header.SetSmsSettingsL(*sendOptions); 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 |
|
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/ |
|
Hi, all of above:
Can I just write python scripts to implement sending chinese chars? |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |