Επεξεργασία

Κοινή χρήση μέσω


LOCALE_SSCRIPTS

Windows Vista and later: A string representing a list of scripts, using the 4-character notation used in ISO 15924. Each script name consists of four Latin characters and the list is arranged in alphabetical order with each name, including the last, followed by a semicolon.

GetLocaleInfo or GetLocaleInfoEx can be called with LCType set to LOCALE_SSCRIPTS as part of a strategy to mitigate security issues related to Internationalized Domain Names (IDNs). Here are some example values:

Locale Locale/language name Value
English (United States) en-US Latn;
Hindi (India) hi-IN Deva;
Japanese (Japan) ja-JP Windows 7 and later: Hani;Hira;Jpan;Kana;
Windows Vista: Hani;Hira;Kana;

 

A compound script value does not include the Latin script unless it is an essential part of the writing system used for the particular locale. Latin characters are often used in the context of locales for which they are not native, for example, for a foreign business name. In the example above for Hindi in India, the only script value is "Deva" (for "Devanagari"), although Latin characters can also appear in Hindi text. The VerifyScripts function has a special flag to address this case.