Function gettextrs::getters::textdomain_codeset [−][src]
pub fn textdomain_codeset<T: Into<Vec<u8>>>(
domainname: T
) -> Result<Option<String>, Error>
Get encoding of translated messages for given domain.
Returns None
if encoding is not set.
If you want to set an encoding, rather than get the current one, use
bind_textdomain_codeset
.
For more information, see bind_textdomain_codeset(3).
Panics
Panics if:
domainname
contains an internal 0 byte, as such values can’t be passed to the underlying C API;- the result is not in UTF-8 (which shouldn’t happen as the results should always be ASCII, as they’re just codeset names).