[mythtv] [MythWeb] charset encoding

Isaac Richards ijr at po.cwru.edu
Thu Apr 10 14:57:45 EDT 2003


On Thursday 10 April 2003 01:20 pm, Ben Bucksch wrote:
> In banner.php, there currently is a line (IIRC):
>
> print("\t\t<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;
> charset=iso-8859-1\">\n");

No, that line does not exist and has never existed, at least with iso-8859-1.  
There's a similar line that says it's utf-8, though.

> That is unnecessary and wrong:
>
>      * I think MythTV uses UTF-8 in the database (at least that's what my
>        converter for Germany causes now ;-) and it works fine in the
>        MythTV frontend, the umlauts appear correctly there), so all
>        umlauts appear garbled in MythWeb if using iso-8859-1.
>      * You can use header() to set the chatset directly in the header
>        where it belongs. In fact, Mozilla ignored the http-equiv.
>
> You can simply remove that above line and add
> header("Content-Type: text/html; charset=UTF-8");
> Umlauts appear correctly for me, then.

Just like cvs has had for, oh, 3 weeks now? =)

Isaac


More information about the mythtv-dev mailing list