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):
%3 test_test_get_locales test_get_locales (test acs-lang) lang::util::charset_for_locale lang::util::charset_for_locale test_test_get_locales->lang::util::charset_for_locale db_string db_string (public) lang::util::charset_for_locale->db_string lang::catalog::get_catalog_file_path lang::catalog::get_catalog_file_path (private) 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 rp_filter rp_filter (private) rp_filter->lang::util::charset_for_locale xo::ConnectionContext proc require xo::ConnectionContext proc require xo::ConnectionContext proc require->lang::util::charset_for_locale

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

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