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
参数
domain
-
The domain.
codeset
-
The code set.
If null, the currently set encoding is returned.
返回值
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.
错误/异常
Throws a ValueError if domain
is the empty string or longer than 1024 bytes.
注释
注意:
The bind_textdomain_codeset() information is maintained per process,
not per thread.