Computing.Net > Forums > Web Development > Accent prob. PHP,iso-8859-1+ UTF-8

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Accent prob. PHP,iso-8859-1+ UTF-8

Reply to Message Icon

Name: peter.l.jones
Date: May 11, 2005 at 00:23:05 Pacific
OS: RH Linux
CPU/Ram: 1.6Mhz
Comment:

I have a problem with characters with French accents. My web site is created using php. All pages include a header.php and a footer.php as follows.
<? include header.php;?>
body
<? include footer.php;?>
In the header I define the following in the <head> tag
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">.
Accents in the head appear fine. However in the body they are screwed.

<h3 align="center">école</h3>
Genève

If I change the charset to UTF-8 the accents in the body are fine but in the header they change to chinese.

Can someone suggest how to get around this

Pete



Sponsored Link
Ads by Google

Response Number 1
Name: archangel
Date: May 18, 2005 at 01:48:14 Pacific
Reply:

This might be a solution --> http://www.html-reference.com/META_httpequiv_language.htm

//J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Accent prob. PHP,iso-8859-1+ UTF-8

Email Encoding www.computing.net/answers/webdevel/email-encoding/1797.html

cant access webpage outside lan ..? www.computing.net/answers/webdevel/cant-access-webpage-outside-lan-/3045.html

PHP form/Email format www.computing.net/answers/webdevel/php-formemail-format/3479.html