Character set problems.
-
I am developing a some php snippets for use on our wordpress site. The problem I’m encountering is withthe display of some characters. fors example the UK Pound sign. it is appearing as Black Diamond witha question mark.
If I view a post using the permalink it looks just fine.
If I view the post via a php snippet I get the problem.
In the snippet I just retrive the post of the database then do :-
print $row[‘post_content’];
Now I guess that there is a bit of code in wordpress that is fixing the problem for the reguar display of a post. I had a hunt though the TPG Get Post pugin for some clue as it’s almost dong what I want to do in my snippet.
If I cut and paste the bad character then pump it though od I get this.
[tomg@www ]# echo Cost: �594 |od -x 0000000 6f43 7473 203a bfef 35bd 3439 000a 0000015 [tomg@www ]# echo Cost: £594 | od -x 0000000 6f43 7473 203a a3c2 3935 0a34 0000014
can anyone suggest where I’m going wrong.
The page I need help with: [log in to see the link]
- The topic ‘Character set problems.’ is closed to new replies.