Re: Problem with characters
| From: | Richard Lynch | Date: | Fri, 20 Apr 2007 19:55:29 +0000 |
| Subject: | Re: Problem with characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253365@lists.php.net to get a copy of this message | ||
On Fri, April 20, 2007 12:19 pm, enediel gonzalez wrote:
> Hello.
> I have a php site connected to one database mysql.
>
> using phpmyadmin I can read that in one register of the database
> exists the
> string
> Vérifie que le service
>
> reading the registry in php code
> $description = $row[$description_field]);
> exec("echo '$description' >> /tmp/ttt.txt");
>
> inside of /tmp/ttt.txt I can see
> Vérifie que le service
>
> Thanks in advance for any advice that helps me clarify mi mistake.
You need to get PHP mysql client to be using UTF-8 as well as the server.
Or you can send a SET CHARACTER_ENCODING or somesuch query...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?