lang::util::charset_for_locale (public)
lang::util::charset_for_locale locale
Defined in packages/acs-lang/tcl/lang-util-procs.tcl
Returns the MIME charset name corresponding to a locale.
- Parameters:
- locale (required)
- Name of a locale, as language_COUNTRY using ISO 639 and ISO 3166
- Returns:
- IANA MIME character set name
- Author:
- Henry Minsky <hqm@mit.edu>
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_get_locales
Source code: return [acs::per_thread_cache eval -key acs-lang.charset_for_locale($locale) { db_string -cache_key ad_lang_mime_charset_$locale charset_for_locale {} }]XQL Not present: PostgreSQL, Oracle Generic XQL file: <fullquery name="lang::util::charset_for_locale.charset_for_locale"> <querytext> select mime_charset from ad_locales where locale = :locale </querytext> </fullquery>packages/acs-lang/tcl/lang-util-procs.xql