Gets a list of charsets acceptable by the client browser.
@api
array List of charsets in preferable order
public function getCharsets() {
if (null !== $this->charsets) {
return $this->charsets;
}
return $this->charsets = array_keys($this
->splitHttpAcceptHeader($this->headers
->get('Accept-Charset')));
}