the meta_tag charset should come first, before any utf strin

You made an own skin or theme for phpMyFAQ. You can share it here with others!

Moderator: Thorsten

Post Reply
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

the meta_tag charset should come first, before any utf strin

Post by UTAKA » Mon Mar 01, 2010 2:43 am

the meta_tag charset should come first, before any utf string appear.

template/***/index.tpl
<title>*******</title>
・・・・
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

to

<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
・・・・
<title>******</title>
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------

Thorsten
Posts: 14754
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: the meta_tag charset should come first, before any utf strin

Post by Thorsten » Mon Mar 01, 2010 8:45 am

Hi,

if you look into the index.php file, you see that we send a UTF-8 header before starting the HTML output:

Code: Select all

header("Content-type: text/html; charset=utf-8");
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply