Re: Problem with characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux