Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub charset {
- my $type = shift->headers->content_type || '';
- if ($type =~ /charset="?([^"\s;]+)"?/i) {
- return $1 if find_encoding($1);
- }
- return undef;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement