Re: Greek Characters from MySQL to PHP to the Browser: ??????
| From: | Colin Guthrie | Date: | Thu, 10 Aug 2006 16:26:17 +0000 |
| Subject: | Re: Greek Characters from MySQL to PHP to the Browser: ?????? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240475@lists.php.net to get a copy of this message | ||
John Wells wrote:
Thanks to everybody's suggestions, problem solved. Yes, the default encoding for PHP's mysql client is latin1. So a quick query of: "SET NAMES 'utf8'" *per connection* works it all out. The articles and links were very helpful in alluminating some of the other particulars of working with utf-8. These will take a bit more reading and studying...Glad you got it sorted. For me, I've had best success treating all tables as latin1, with the connection also using lating and just "knowing" that all the text is UTF8 encoded.... It certainly hasn't come back to bite me in the bum yet! Col.