bind_textdomain_codeset
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
bind_textdomain_codeset — Specify or get the character encoding in which the messages from the DOMAIN message catalog will be returned
Parameters
domain
-
The domain.
codeset
-
The code set.
If null, the currently set encoding is returned.
Return Values
Returns the encoding currently set for domain,
or false if none has been set or on failure.
On musl prior to 1.2.6, false is always returned.
Errors/Exceptions
Throws a ValueError if domain
is the empty string or longer than 1024 bytes.
Notes
Note:
The bind_textdomain_codeset() information is maintained per process,
not per thread.