Link List V1.6 & Greek fonts

Creating and modifying plugins.
Post Reply
efgallos
Posts: 3
Joined: Sun Feb 12, 2006 11:16 pm
Location: Athens-Greece
Contact:

Link List V1.6 & Greek fonts

Post 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?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

In your blog admin screen, are you configured for native charset or UTF-8?
Judebert
---
Website | Wishlist | PayPal
efgallos
Posts: 3
Joined: Sun Feb 12, 2006 11:16 pm
Location: Athens-Greece
Contact:

Post by efgallos »

I'm configured for native charset. (with UTF-8 charset all entries don't appears correctly)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
efgallos
Posts: 3
Joined: Sun Feb 12, 2006 11:16 pm
Location: Athens-Greece
Contact:

Post 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
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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...)
Post Reply