Chinese Character in SI | Search |
NowSMS Support Forums ⬆ WAP Technical Discussions (unsupported) ⬆ Archive through December 08, 2004 ⬆ |
◄ ► |
Author | Message | |||
CLC |
}I am newbie in Wap push SI.. I am trying to display chinese character in wap push sms, but I don't know how.. I found this sample in Nokia document.. Content-type: text/vnd.wap.si; charset=UTF-8 <!-> <?xml> <!doctype> <si> <indication href = http://www.nokia.com si-id="NokiaActiveAlertPI1048755201102:0" created="2003-04-06T17:20:45Z"> This is 中文 </indication> </si> How could I encode it to binary XML? Help me please...thank you so much!} | |||
Bryce Norwood - NowSMS Support |
You'd encode it using UTF-8. The Chinese characters in that particular document are encoded by their complete Unicode values in an escape sequence. But you would actually use UTF-8 in the WBXML. The Unicode character 4E2D would be encoded in UTF-8 as 3 characters: E4 B8 AD I performed the above conversion by hand, so it may be off. UTF-8 is defined in RFC 2279: http://www.ietf.org/rfc/rfc2279.txt | |||
CLC |
thanks for your help!! But I still cannot send the right wap push to my phone..I don't know why. Maybe I didn't have a right WDP and WSP for my push message.. Could you please show me a Chinese wap push example? I will be very appreciate that...I am almost crazy in this task.. |