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


Feedback Form (ExpandCollapse)

What do you think about this web page?






(Optional) Please provide us more details. For example, suppose you select option 2 above, can you tell us specifically what information is missing? You can also suggest anything that can help us improve this web page.

(Optional) Your name:

(Optional) Your email address:

Please enter again to confirm:

Due to the amount of messages we received, we may not be able to reply to all messages.