contao / check

Contao Check
GNU Lesser General Public License v3.0
47 stars 23 forks source link

add Content-Type header for charset #104

Closed fritzmg closed 8 years ago

fritzmg commented 8 years ago

Some wild hosters might have a default charset other than utf-8 configured. This will lead to garbled text in the contao check since the Content-Type header takes precedence over the <meta charset="utf-8"> definition in the output (http://stackoverflow.com/a/7103606/374996).

May be

header('Content-Type: text/html; charset=utf-8');

can be simply added to Router::dispatch.

leofeyer commented 8 years ago

Closing this in favour of #104.