Posted on: 02/24/08 02:45pm
By: winnerdk
I just installed the Tag plugin 0.3.1 and now I'm getting this kind of stuff all over the website:
"on my screen that I�m about to publish. It�s going out if"
"By Gilberto P�rez for La Estrella de Panama - Panama has approved the importation of..."
"that met Friday in Nat� in the province of Cocl�. The..."
What the heck are those little question mark things that just came out on nowhere (as soon as I installed the Tag plugin.) ???
It seems like somehow all of a sudden my site can't recognize apostrophized words or Spanish language words with accent marks. What the heck happened? (And, how can I keep the Tag plugin running as well as getting the right font stuff back?)
Don
http://www.panama-guide.com[*1]
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/24/08 02:55pm
By: Dirk
Have you tried disabling the plugin (from the Admin's "Plugins" panel)?
bye, Dirk
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/24/08 03:01pm
By: winnerdk
Yeah, I could do that, but I'm trying to both get the plugin to work and to fix the font thing as well...
Don
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/24/08 08:00pm
By: winnerdk
Yes, I disabled the Tag plugin and the problem went away. So, the plugin is causing the problem. Crap.
Don
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/24/08 10:42pm
By: samstone
Maybe the Tag Plugin uses Unicode and you don't?
Just a thought.
Peace!
Sam
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/24/08 11:21pm
By: winnerdk
Allow me to display my ignorance... Unicode?
Don
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/25/08 09:31am
By: samstone
Based on your page source, you are using charset=iso-8859-1.
I am just guessing that the plugin is using charset=utf-8.
UTF-8 is Unicode base, meaning Universal Code, shared around the world. iso-8859-1 is for western languages. More people are using UTF-8 for international language compatibility. Windows XP and later use Unicode.
Knowing that the plugin developer is a Japanese, I guess he might use UTF-8 for the charset.
So you can either hack the plugin to use iso-8859-1, or change your website's charset to utf-8.
Just a wild guess, since I don't use this plugin.
Peace!
Sam
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/25/08 02:06pm
By: mevans
Don,
Give this a try...
First, go into the tag plugins language directory and copy english_utf-8.php to english.php.
Then, edit that language file (english.php), near the top you will see:
Text Formatted Code
$LANG_CHARSET = 'utf-8';
Change that line to be:
Text Formatted Code
$LANG_CHARSET = 'iso-8859-1';
Then, edit the tags/function.inc file, near the top you will see:
Text Formatted Code
/**
* Language file Include
*/
$langfile = $_CONF['path'] . 'plugins/tag/language/' . $_CONF['language'] . '.php';
if (file_exists($langfile)) {
include_once $langfile;
} else {
include_once $_CONF['path'] . 'plugins/tag/language/english_utf-8.php';
}
Change the next to last line so it used english.php instead of english_utf-8.php.
That should get you back to a consistent iso-8559-1 site and let the tags plugin work with your site and not destroy your fonts.
Thanks!
Mark
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/25/08 02:16pm
By: Dirk
Quote by: mevansThen, edit that language file (english.php), near the top you will see:
Text Formatted Code
$LANG_CHARSET = 'utf-8';
So that plugin sets $LANG_CHARSET? That's wrong - that variable should only be set by Geeklog's main language file.
I'd suggest simply removing that line and send a bug report to the author.
bye, Dirk
Re: What The Heck? Tag Plug Smoked My Fonts
Posted on: 02/25/08 05:00pm
By: winnerdk
Quote by: samstone
So you can either hack the plugin to use iso-8859-1, or change your website's charset to utf-8.
Thanks for taking the time to explain that. I think at this point I'm just going to keep the plugin disabled and wait for the guy who wrote it to fix it.
Don