1

I migrated my website to new server. However, i got the error with fractions Display.

Here is the error: enter image description here

On the old server:

enter image description here

I installed the same extensions for php. What am I missing?

Thanks.

UPDATE:

It is related to default character in php. So I commented out in php.ini and restarted Apache. It worked perfectly.

default_charset = "iso-8859-1"

2 Answers 2

0

Check your httpd.conf file for mention of AddDefaultCharset utf-8. If it's not there or is anything other than utf-8 (like perhaps iso-8859-1) then add that line in the appropriate area.

To verify what's happening, check the HTTP response headers for the website that isn't showing fractions properly and I'll bet you see Content-Type text/html with no mention of a charset. That means that unicode fraction symbols are not going to render properly.

For more information, check Apache's official core documentation.

2
  • I've already added it. Commented Oct 6, 2014 at 5:27
  • Content-Type text/html; charset=UTF-8 Commented Oct 6, 2014 at 5:28
0

It is related to default character in php. So I commented it out in php.ini and restarted apache. It worked perfectly.

default_charset = "iso-8859-1"

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.