php convert - to whatever it needs to be to display correctly

Joined
12 Feb 2006
Posts
17,627
Location
Surrey
not sure on the keywords i'm looking for on this so googling is failing me though i'm sure it's very simple.

title for wordpress article is "hi there - how are you"

i use a php file to read the rss for the blog and show the title and link to it on a seperate site.

what i'm getting is "hi there – how are you"

what do i need to do?
 
Try setting a charset in your HTML like this:

Code:
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
 
Back
Top Bottom