pub fn bind_textdomain_codeset<T, U>(
domainname: T,
codeset: U,
) -> Result<Option<String>, Error>
Expand description
Set encoding of translated messages.
Returns the current charset for given domain, after possibly changing it. None
means no
codeset has been set.
If you want to get current encoding, rather than set it, use getters::textdomain_codeset
.
For more information, see bind_textdomain_codeset(3).
§Panics
Panics if:
domainname
orcodeset
contain 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).