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 - 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):
%3 lang::catalog::get_catalog_file_path lang::catalog::get_catalog_file_path (private) lang::util::charset_for_locale lang::util::charset_for_locale lang::catalog::get_catalog_file_path->lang::util::charset_for_locale lang::conn::charset lang::conn::charset (public) lang::conn::charset->lang::util::charset_for_locale db_string db_string (public) lang::util::charset_for_locale->db_string

Testcases:
No testcase defined.
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

[ hide source ] | [ make this the default ]
Show another procedure: