Reply to Re: Special characters.

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация