Zend\Stdlib\StringUtils::getWrapper
Get the first string wrapper supporting the given character encoding and supports to convert into the given convert encoding.
Signature
public function getWrapper([string
$encoding = 'UTF-8',
[string|null
$convertEncoding = null]] )
Parameters
$encoding
—
string
- Character encoding to support
$convertEncoding
—
object
- OPTIONAL character encoding to convert in
Returns
- StringWrapperInterface
Errors/Exceptions
-
RuntimeException
- If no wrapper supports given character encodings