public function Response::setCharset

Sets the response charset.

@api

Parameters

string $charset Character set:

Return value

Response

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 458

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function setCharset($charset) {
  $this->charset = $charset;
  return $this;
}