FUNCTION:  Lang.characterSet

Lang.characterSet( )
The Lang.characterSet function returns an integer value that identifies the character set that is currently supported by the browser.
The returned integer is the unique MIBEnum code that has been assigned by the Internet Assigned Number Authority (IANA) to every character set that "may be used in the Internet and may be referred to in Internet documentation." The assigned values can be viewed at:
For example, the Nokia WAP Toolkit v2.0 returns an MIBEnum value of 1000. This is the ISO-10646-UCS-2 character set commonly called Unicode.
Clearly the character set being used will be very browser specific.
This function does not take a parameter.
Code for CharacterSetExample.wml
<?xml version="1.0"?>

<card id="card1">
   characterSet example
   <do type="accept">
      <go href="CharacterSetExample.wmls#findcharacterset()" />

<card id="card2">
   character set = $(charset)


Code for CharacterSetExample.wmls
extern function findcharacterset()
   var result = Lang.characterSet( );
   WMLBrowser.setVar("charset", result);

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information