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


A button for going back to the top of this page