Re: Incorrect encoding when data read from a mysql database
| From: | Bastien Koert | Date: | Wed, 08 Dec 2010 20:33:18 +0000 |
| Subject: | Re: Incorrect encoding when data read from a mysql database | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47526@lists.php.net to get a copy of this message | ||
On Fri, Dec 3, 2010 at 4:42 AM, Neil Jackson <neil@webcoza.co.za> wrote:
> Hi,
> I am designing a website that requires storing data in 3 different languages,
> English, Portuguese and Tetum.
>
> When I read the data from the database the accented characters are displayed
> as a ? in Firefox and Opera, a square in IE and correctly in Chrome
>
> How can I convert it on the fly and display the data correctly?
>
> Thanks for the help
> Neil
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
1. set the db to store unicode characters
2. send the html with a utf-8 character header
--
Bastien
Cat, the other other white meat