Link Search Menu Expand Document

getLocaleInfo

Explanation Gets locale-specific information.
Added since Ver.4.1.0.
Not available in Mobile and AI.
Call format var info = getLocaleInfo (id)
Return value Returns the information corresponding to id as a number or string.
If the information corresponding to id is not found, null is returned.
Arguments String id      Specify the ID of the information to be acquired from the following.
Value Explanation
"encoding" Returns the string encoding method as a string. In the case of Japanese environment, "Shift_JIS" is returned.
"charset" Returns the character set numerically. For Japanese environment, 128 is returned.
"codepage" Returns the code page numerically. For Japanese environment, 932 is returned.
"lang" Returns the language identifier as a string. In the case of Japanese environment, "ja" is returned.
"country_code" Returns the country code of the international call code as a number. In the case of Japanese environment, 81 is returned.
"mail_encoding" Returns a string of the standard encoding methods used in email. In the case of Japanese environment, "ISO-2022-JP" is returned.
Exception None
Example of use
var cc = getLocaleInfo ("lang");
if (cc == "ja") {
    MessageBox (" Hello ");
} else {
    MessageBox ("Hello");
}
Related item