Closed Bug 897368 Opened 11 years ago Closed 11 years ago

[WAP Push] Support "code page token" in WBXML parser and CP Parser

Categories

(Core :: DOM: Device Interfaces, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: chucklee, Assigned: chucklee)

References

Details

(Whiteboard: [ETA:8/2])

Attachments

(3 files)

Per WAP-192-WBXML-20010725-A, clause 5.8
"Each code space is further split into a series of 256 code pages. Code pages allow for future expansion of the wellknown codes. A single token (SWITCH_PAGE) switches between the code pages."

Although SI[1], SL[2] and CP[3] defined in WAP only use code page 0 only, but CP[4] defined by MOA uses code page 1.
Since we support parsing CP from WBXML form to XML form, code page need to be supported.

[1] http://technical.openmobilealliance.org/tech/affiliates/wap/wap-167-serviceind-20010731-a.pdf
[2] http://technical.openmobilealliance.org/tech/affiliates/wap/wap-168-serviceload-20010731-a.pdf
[3] http://technical.openmobilealliance.org/tech/affiliates/wap/wap-183-provcont-20010724-a.pdf
[4] http://technical.openmobilealliance.org/Technical/release_program/docs/ClientProv/V1_1-20090421-C/OMA-TS-WAP_ProvCont-V1_1-20090421-C.pdf
I found a way to receive OMA CP from Chunghwa Telecom, Taiwan(send empty SMS to number 3693). And it uses code page in its WBXML encoding.
So this might become a must now.
Whiteboard: [ETA:8/2]
Attachment #782452 - Flags: review?(vyang) → review+
Attachment #782454 - Flags: review?(vyang) → review+
Comment on attachment 782455 [details] [diff] [review]
0003. Test case for code page switch

Review of attachment 782455 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you :)
Attachment #782455 - Flags: review?(vyang) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: