src/View/Output/Chunks.php
public function detectEncoding($string)
    {
        $encoding = $this->pool->encodingService->mbDetectEncoding($string);

        // We need to decide, if we need to change the official encoding of
        // the HTML output with a meta tag. We ignore everything in the
        // doNothingEncoding array.
        if (in_array($encoding, $this->doNothingEncoding, true) === false) {
            $this->officialEncoding = $encoding;
        }
    }
public function detectEncoding($string)
    {
        $encoding = $this->pool->encodingService->mbDetectEncoding($string);

        // We need to decide, if we need to change the official encoding of
        // the HTML output with a meta tag. We ignore everything in the
        // doNothingEncoding array.
        if (in_array($encoding, $this->doNothingEncoding, true) === false) {
            $this->officialEncoding = $encoding;
        }
    }
public function detectEncoding ( $ string ) { $ encoding = $ this -> pool -> encodingService -> mbDetectEncoding ( $ string ) ; // We need to decide, if we need to change the official encoding of // the HTML output with a meta tag. We ignore everything in the // doNothingEncoding array. if ( in_array ( $ encoding , $ this -> doNothingEncoding , true ) === false ) { $ this -> officialEncoding = $ encoding ; } }
Simple wrapper around mb_detect_encoding.

We also try to track the encoding we need to add to the output, so
people can use unicode function names.
We are not using it above, because there we are only handling broken
string encoding by completely encoding it, every char in there.

@see \Brainworxx\Krexx\Analyse\Routing\Process\ProcessString

@param string $string
The string we are processing.
Simple wrapper around mb_detect_encoding .