You are here: Re: Special characters pulled from wordpress database « PHP Programming Language « IT news, forums, messages
Re: Special characters pulled from wordpress database

Posted by sleepy1038 on 09/28/70 12:01

I tried using both these functions before, but no luck.

On Jan 28, 8:52 am, Jensen Somers <jensen.som...@gmail.com> wrote:
> sleepy1038 wrote:
> > Hello,
>
> > I'm developing a site that makes use of wordpress. The homepage is
> > outside of wordpress and I am pulling the latest 3 blog posts from the
> > wordpress database to display on the homepage. The problem is that
> > special characters (&mdash;) for example, do not display properly. It
> > displays as a "?" with a diamond around it �. The characters actually
> > display fine withing the wordpress blog portion of the site.
>
> > I tried changing the encoding on the homepage to UTF-8 (wordpress uses
> > this), but no luck. Any ideas?
>
> > Thank You
>
> Did you try to pass them through htmlentities() or htmlspecialchars()?
>
> - Jensen

 

Navigation:

[Reply to this 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

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