Feature: method of Mojo::Message that will automatically detect charset and decode body

26 views
Skip to first unread message

Алексей Ставров

unread,
Mar 20, 2015, 12:54:49 PM3/20/15
to mojol...@googlegroups.com
Will be cool to have method that detect encoding from Content-Type header or in html (<meta charset="...">, <meta http-equiv="Content-Type" ...>) that will make decode body.

May be need to see how it implemented here:
https://metacpan.org/source/GAAS/HTTP-Message-6.06/lib/HTTP/Message.pm#L280

What are you think?

sri

unread,
Mar 20, 2015, 1:01:31 PM3/20/15
to mojol...@googlegroups.com
The HTML Living Standard explains how the encoding should be detected.


It's pretty messy, and i doubt we'll ever have it in Mojolicious core.

--
sebastian
Reply all
Reply to author
Forward
0 new messages