Home > PHP > Function > Gettext > bind_textdomain_codeset()

bind_textdomain_codeset()

bind_textdomain_codeset - Specify the character encoding in which the messages from the DOMAIN message catalog will be returned

Syntax

string bind_textdomain_codeset (string $domain, string $codeset)

Arguments

  • domain - The domain
  • codeset - The code set

Description

With bind_textdomain_codeset(), you can set in which encoding will be messages from domain returned by gettext() and similar functions.

Version

PHP 4.2.0, 5

Return value

A string on success.