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 Kailash Nadh on 09/28/11 12:01

On Jan 28, 1:39 pm, sleepy1038 <clar...@gmail.com> 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

If you are passing your content through htmlentities(), that might be
the problem.

--
Kailash Nadh | http://kailashnadh.name

 

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

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