19.2. Finding the Character Set Supported by the WMLScript Interpreter of a Mobile Device: characterSet() Function
The characterSet() function is used to find the character set supported by the WMLScript interpreter of a mobile device. It returns a MIBEnum value defined by IANA (Internet Assigned Numbers Authority). Here is an example:
var characterSet = Lang.characterSet();
The following table lists some common character sets and their corresponding MIBEnum value:
Character Set |
MIBEnum Value |
---|---|
iso-10646-ucs-2 |
1000 |
utf-8 |
106 |
us-ascii |
3 |
iso-8859-1 |
4 |
iso-8859-2 |
5 |
iso-8859-3 |
6 |
iso-8859-4 |
7 |
iso-8859-5 |
8 |
iso-8859-6 |
9 |
iso-8859-7 |
10 |
iso-8859-8 |
11 |
iso-8859-9 |
12 |
The MIBEnum value of other character sets can be found at http://www.iana.org/assignments/character-sets.
Previous Page | Page 57 of 71 | Next Page | ![]() |
Contents at a Glance (Click Here for Full Table of Contents)
- 1. WMLScript Introduction
- 2. Hello World WMLScript Example
- 3. Compiling WMLScript Code
- 4. WMLScript Language Rules
- 5. Defining WMLScript Functions
- 6. Calling WMLScript Functions
- 7. WMLScript Variables
- 8. WMLScript Data Types
- 9. WMLScript Variables Vs WML Variables
- 10. Passing Arguments to Functions By Value and By Reference
- 11. WMLScript Operators
- 12. WMLScript Conditional Statements
- 13. WMLScript Looping Statements
- 14. WMLScript Standard Libraries Overview
- 15. WMLScript WMLBrowser Standard Library
- 16. WMLScript Dialogs Standard Library
- 17. WMLScript String Standard Library
- 18. WMLScript Float Standard Library
- 19. WMLScript Lang Standard Library
- 20. WMLScript URL Standard Library
- 21. WMLScript Example: Validating Form Data