|
Posted by Defacta on 08/28/07 16:13
On 28 août, 16:52, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Defacta wrote:
> > Hi,
>
> > When I put in a textarea some french charactes, when I get them back
> > with a SQL request, all is correct.
>
> > With phpMyAdmin, in the database, I can see this:
>
> > Et voilà que la star de l\'Internet met cette fois la voûte
> > céleste à portée de souris grâce à une nouvelle option baptisée
>
> > But on another server, with the same PHP code, in the database I have
> > this:
>
> > Et voilà que la star de l'Internet met cette fois la voûte
> > céleste à portée de souris grâce à une nouvelle option baptisée
>
> > Knowing that the PHP code is the same and the browsers too, which
> > difference in the config files (PHP or MySQL) can affect the
> > characters ?
>
> > Thanks,
> > Vincent.
>
> I'd say more probably MySQL.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
Ok, I do
$body = htmlentities($body, ENT_NOQUOTES, "UTF-8") ;
And this works...
Actually there was some troubles because I must do an urlencode of the
$body variable.
:)
Vincent.
Navigation:
[Reply to this message]
|