Hacks
Weird charactes in the page
Main Menu
| Home |
| Joomla Install |
| Administration |
| Joomla Components |
| Joomla Modules |
| Joomla Bots |
| Joomla SEO |
| Hacks |
|
|
|
| Weird charactes in the page |
|
|
|
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> So, wich ones can be the most common issues? First of all you should check your content, to see if the behaviour is caused by something described below, before you try to perform the hack. Generally this occurs with your punctuation marks. If you see the weird characters instead of your expected apostrophes, commas, semi-colons and periods, the explanation can be the following fact: the word processor you use – and allmost all are behaving this way, not only the infamous MicroShit products – try to “enhance” your documents, in most of the cases as you type them. To archieve better look they are replacing exactly these punctuation items with typography standard ones. And there are alot of them, for example there are at least 5 different types of apostrophes used in classic typography, but only one of them, the plain-vanilla basic apostrophe is contained in the so called restricted US-ASCII character set. And you have full support only for these basic character codes contained in this set across the OS-es and browsers.
To be worse, the representation/replacement of these fancy tipographic
elements is varying across the OS-es and word processors, so when you
cut&paste ready made content from a given word processor, the
result is simply unpredictable.
You can check if this is your case in very simple way: open the misbehaving content item, and look to it's HTML source code. Depending of the WYSIWYG editor you have installed the method may vary, but generally it's a HTML button somewhere in your editor's icon row, click on it. Examine the code, and see, if there are correct punctuation marks in source where you want to be shown, or instead you have HTML special characters. (You know, those beginning with ampersand and ending with semicolon). If you have the right characters, you need the hack described at the end of this page. If not, you may need to read all this tip So, if you have those weird characters, you can use one of the possible workarounds below:
But if the content is okay, you need to hack in, because there are a discrepancy between the codepage used by Joomla/your template and the MySQL database. The hack is simple!
Locate the file globals.php in the root directory of your Joomla install. Make a backup! Open it with your preferred editor.
header("Content-Type: text/html; charset=UTF-8");
Save it! And enjoy your site!
plugin by VivoCiti.com
|
| < Prev |
|---|
|
|
|




.









