Old Style WapForum Bookmarks with Chinese Characters | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2006 ⬆ |
◄ ► |
Author | Message | |||
Ben Hoskins New member Username: Benhoskins Post Number: 1 Registered: 07-2006 |
Hi, I've been using the nowsms tool for old style characteristic-list bookmarks, and this successfully sends out chinese characters. It does not, however, receive the characters properly when I paste the doc into the Send XML Settings section. Doc as follows: <CHARACTERISTIC-LIST> <CHARACTERISTIC TYPE="BOOKMARK"> <PARM NAME="NAME" VALUE="书签已经被发送"/> <PARM NAME="URL" VALUE="http://wap.google.cn"/> </CHARACTERISTIC> </CHARACTERISTIC-LIST> So, does the old style bookmark OTA section encode the PDU differently to make this happen? If so, what does it do? | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6220 Registered: 10-2002 |
Hi Ben, Put an XML header in there that indicates that the character set is UTF-8, and that should resolve the problem. Of course, it doesn't make sense to have to do this, because the web form is configured to post in UTF-8. So we should be defaulting to expecting UTF-8 encoding in the XML document, but we are not. Just insert this as the first line: <?xml version="1.0" encoding="utf-8"?> ... and that should resolve the problem. -bn | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6221 Registered: 10-2002 |
P.S. - I should also note that if you are just sending this old type of bookmark, the results from sending out the XML document vs. using the NowSMS web form will be slightly different. When we see "CHARACTERISTIC-LIST" as the root XML document, we treat this as a Nokia/SonyEricsson OTA settings document. It will go out with a MIME type of application/x-wap-prov.browser-settings. But when you send out the bookmark with the NowSMS web form, it goes out as a bookmark only with a MIME type of application/x-wap-prov.browser-bookmarks. We don't have logic in the "Send XML Settings" interface to distinguish a bookmarks-only settings message of this type. -bn |