Jump to content

[SOLVED] unicode display problem


chrischen

Recommended Posts

I have wordpress installed and it displays all character's correctly. However I made a page myself and queried the wordpress database that contained quotes copy and pasted from microsoft word. In my custom page those characters show up as a diamond with a question mark in it. It shows up correctly in the wordpress page so how do I fix this?

 

The html page is set to utf-8 encoding.

 

Thanks,

Chris

Link to comment
https://forums.phpfreaks.com/topic/129260-solved-unicode-display-problem/
Share on other sites

Word sucks cus it uses some non-standard characters. I always have to go in and change them manually. You can try pasting it into Notepad first, but you will loose all your formatting.

 

If you don't want to paste it into notepad, go through and manually change the characters (after you paste it into WP)

The htmlentities didn't work. All it did was take the html code and convert it.

 

In wordpress I viewed source and the quote that I converted to work is like this “ instead of like this ". This is odd because when I view it on my custom page that retrieves it from the database for it displays as ". For the other quotes I didn't change it displays as a diamond with a question mark even in view source.

 

I checked the database and it's stored like “ too. The wordpress db is utf-8, so the problem is with PHP.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.