Character encoding issue in upgrade to version 2
Posted: Fri Jun 10, 2016 1:01 pm
I have upgraded my second web site to Version 2 (Freetown) and have hit the wall.
Both sites use the same basic template.
Both sites are on identically (I am told) configured servers belonging to the same web host company.
But the second site has multiple encoding issues: for example, the hyphens in this comment in my templates: are displayed as this:
This stops anything below there being displayed.
I can remove the comment from the template, and then run into other similar character encoding problems. And the pages display as though some style sheets are not attached, although I have verified that they are in place.
These line is in my global settings:
Particularly annoying is the fact that the site is working perfectly on another test server apart from a few old hard coded links which I expect not to work. Exported to my live server, it all turns to excrement.
Placing
I realise I have given quite sketchy details here, but wonder if anyone can suggest directions I might investigate.
Both sites use the same basic template.
Both sites are on identically (I am told) configured servers belonging to the same web host company.
But the second site has multiple encoding issues: for example, the hyphens in this comment in my templates:
Code: Select all
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
Code: Select all
–––––––––––––––––––––––––––––––––––––––––––––––––â€
I can remove the comment from the template, and then run into other similar character encoding problems. And the pages display as though some style sheets are not attached, although I have verified that they are in place.
These line is in my global settings:
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Placing
in the config.php removes some of the errors, but doesn't touch the string of hyphens noted above.$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = false;
I realise I have given quite sketchy details here, but wonder if anyone can suggest directions I might investigate.