Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > html + php problem

Reply
Thread Tools

html + php problem

 
 
eeh
Guest
Posts: n/a
 
      02-18-2006
My PHP file cannot display Chinese font correctly and automatically
under IE. I have checked IE that the encoding scheme is detected to be
western European.

Actually I have written the following header in the php file:

<html lang="zh-tw">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>

 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      02-18-2006
eeh wrote:

> <meta http-equiv="Content-Type" content="text/html; charset=big5">


Use a *real* HTTP header -- not that junk.

<?php header("Content-Type: text/html; charset=big5"); ?>

at the very top of your file -- before the DOCTYPE and <html> bits.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
 
Edwin van der Vaart
Guest
Posts: n/a
 
      02-18-2006
Toby Inkster wrote:
> eeh wrote:
>
>><meta http-equiv="Content-Type" content="text/html; charset=big5">

>
> Use a *real* HTTP header -- not that junk.
>
> <?php header("Content-Type: text/html; charset=big5"); ?>
>
> at the very top of your file -- before the DOCTYPE and <html> bits.

But why get I "No Character Encoding Found! Using iso-8859-1" during
validation of the page?
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Under construction
Explicitly no permission given to Forum4Designers, onlinemarketingtoday,
24help.info and issociate.de to duplicate this post.
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      02-18-2006
Edwin van der Vaart wrote:

> But why get I "No Character Encoding Found! Using iso-8859-1" during
> validation of the page?


Because you've uploaded the HTML file rather than pointing the validator
at the URL.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
eeh
Guest
Posts: n/a
 
      02-18-2006
U are right!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
Learn how to edit php pages with free php editor torque63 HTML 0 01-01-2009 03:45 AM
Validate your html forms with javascript and php with a simple php class __ Javascript 1 10-02-2007 11:06 AM
RE: php and python: how to unpickle using PHP? Ted Zeng Python 0 10-13-2006 12:11 AM
php and python: how to unpickle using PHP? Ted Zeng Python 4 10-03-2006 03:07 PM



Advertisments