Chinese Character in SI

Chinese Character in SI SearchSearch
Author Message
CLC
Posted on Wednesday, October 15, 2003 - 09:35 am:   

}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 &#x4e2d;&#x6587;
</indication>
</si>

How could I encode it to binary XML?
Help me please...thank you so much!}
Bryce Norwood - NowSMS Support
Posted on Wednesday, October 15, 2003 - 08:08 pm:   

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
Posted on Thursday, October 16, 2003 - 03:46 am:   

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..