Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#282 CLWIKI : issues with accents in lists, tables...

all_active_versions
closed
5
2013-11-29
2012-06-07
Frederic Minne
No

The parsing of the wiki links in HTML structures (lists, tables...) failed when those links contain accents !

Need to rewrite the inline parser !

Discussion

  • I meet exactly the same trouble :-)

     
  • Frederic Minne
    Frederic Minne
    2012-06-07

    I'm afraid it will take some time to rewrite the wiki2xhtml engine in Claroline...

     
  • My change in the file: claroline\wiki\lib\wiki2xhtml\class.wiki2xhtml.php was following:

    ...
    if ($this->getOpt('active_fix_word_entities')) {
    $wR = array(
    '‹' => '‹',
    '›' => '›',
    '…' => '…',
    '–' => '–',
    '—' => '—',
    '‚' => '‚',
    '�›' => '&#1EBB;'); // e with hook from UTF-8 Unicode

            //'ƒ' => '&\#402;',
            //'„' => '&\#8222;',
            //'†' => '&\#8224;',
            //'‡' => '&\#8225;',
            //'ˆ' => '&\#710;',
            //'‰' => '&\#8240;',
            //'Š' => '&\#352;',
            //'Ś' => '&\#338;',
            //'‘' => '&\#8216;',
            //'’' => '&\#8217;',
            //'“' => '&\#8220;',
            //'”' => '&\#8221;',
            //'•' => '&\#8226;',
            //'˜' => '&\#732;',
            //'™' => '&\#8482;',
            //'š' => '&\#353;',
            //'ś' => '&\#339;',
            //'ź' => '&\#376;',
            //'€' => '&\#8364;'\);
    
            $res = str\_replace\(array\_keys\($wR\),array\_values\($wR\),$res\);
        \}
    

    ...

    After this change it works well for my UTF-8 version. (simple tested :-) )

     
  • Frederic Minne
    Frederic Minne
    2013-11-29

    • status: pending --> closed