Page 1 of 1
Link List V1.6 & Greek fonts
Posted: Sun Feb 12, 2006 11:44 pm
by efgallos
I'm using Link List V1.6 and I have problem when I'm using Greek fonts (enconding Greek windows-1253 or Greek ISO 8859-7). Links and Categories appears with ??????????? insted of greek letters. I didn't have the same problem with previous version. I'm using Serendipity 1.0 beta1.How can I resolve this problem?
Posted: Mon Feb 13, 2006 5:24 am
by judebert
In your blog admin screen, are you configured for native charset or UTF-8?
Posted: Mon Feb 13, 2006 11:14 pm
by efgallos
I'm configured for native charset. (with UTF-8 charset all entries don't appears correctly)
Posted: Tue Feb 14, 2006 10:59 am
by garvinhicking
Which langauge file are you using? Serendipity has no greek language file...
My guess is that you translated it on your own but did not properly adjust the charset constant for the font you are required to use?
Regards,
Garvin
Posted: Tue Feb 14, 2006 9:10 pm
by efgallos
Dear Garvin,
I'm using the default English language file in which I have change the line 7:<< @define('LANG_CHARSET', 'windows-1253');>> to support greek fonts. (I'm testing Serendipity Blog System yet and I'm going to translate this file later). After this change all entries I'm doing, appears correctly. The problem there is only with Link List plugin. When I put a new link or a category with greek fonts it appears with ??????????. (you can see it at
http://efgallos.efm.gr/blogs/). I remind you that the problem was presented when I made the update to LinkList V1.6. With the previous version did not exist any problem. I believe that something should be corrected in Link List plugin's files.
Best Regards
Posted: Wed Feb 15, 2006 4:36 am
by mgroeninger
Hi, efgallos...
I have two questions that might help though...
- Are you using the database backend, or entering xml directly into the text box? If you are using the database have you verified that the data in the database is being stored correctly?
What was the previous version you were using that was working?
Personally, though, I think this has something to do with using the UTF-8 xml parser to process the links...
You could look for these lines:
Code: Select all
$xml = xml_parser_create('UTF-8');
$linkxml = serendipity_utf8_encode($this->get_config('links'));
xml_parse_into_struct($xml, '<list>' . $linkxml . '</list>', $struct, $index);
And replace them with these lines:
Code: Select all
$xml = xml_parser_create();
xml_parse_into_struct($xml, '<list>'.$this->get_config('links').'</list>', $struct, $index);
And see if that fixes the problem... If it does, I'm not sure of what the best path forward is... the UTF-8 parser fixes a lot of other problems for a lot of other people... Perhaps another configuration setting might be useful (like this plugin doesn't have enough already...)