The assignment to `$code` is dead and can be removed.
The assignment to `$charset` is dead and can be removed.
The assignment to `$info` is dead and can be removed.
The parameter `$as_html` is not used and could be removed.