Re: Accented characters

"David Powers" <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <00de01c4cffa$f5a10280$0a01a8c0@dan>
steve wrote:
> When I view the same page locally, it also comes down as iso-8859-1,
> but the characters do not render correctly - instead each accented
> char appears as two characters. When I switch the browser to utf-8,
> it renders correctly.

Try this right at the top of the page before any headers are sent, and
remove the charset metatag from the document <head>:

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

--
David Powers
*******************************************
Co-author, "PHP Web Development with Dreamweaver MX 2004" (Apress)
http://computerbookshelf.com/phpdw.php

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.