1 (edited by lbasilis 2011-04-28 17:11:52)

Topic: Solution for languages that render as entities

1) Go to gsconfig.php

and add

define('GSEDITOROPTIONS'," 
entities : false
");

2) in admin\inc\basic.php

locate the  safe_slash_html() function and replace htmlentities with htmlspecialchars

function safe_slash_html($text) {
    if (get_magic_quotes_gpc()==0) {
        $text = addslashes(htmlspecialchars($text, ENT_QUOTES, 'UTF-8'));
    } else {
        $text = htmlentities($text, ENT_QUOTES, 'UTF-8');
    }
    return $text;
}

now greek and other languages will render perfectly in browser instead of entities that affect seo

Re: Solution for languages that render as entities

Yassou Ibasilis,

this is already explained in our WIKI,

Entities and Special Characters

By default, the editor converts special characters like umlauts (üäö …) to their HTML-equivalents. This is not needed anymore if you encode your pages in UTF-8. So you can set this option to false.

see here:

http://get-simple.info/wiki/how_to:wysiwyg_editor

It's good that it works for you!

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forum/forum/16/german-deutsch/

Re: Solution for languages that render as entities

Precise link

http://get-simple.info/wiki/how_to:edit … characters

Re: Solution for languages that render as entities

Connie wrote:

By default, the editor converts special characters like umlauts (üäö …) to their HTML-equivalents. This is not needed anymore if you encode your pages in UTF-8. So you can set this option to false.

This refers only to WYSIWYG editor namely CKeditor.

I switched this editor off and still have entities like the famous &oacute. I even hacked basic.php according to the above, and still get have entities in page content. HTML <title>s hower render without entities (as of 3.0).

Re: Solution for languages that render as entities

This has been resolved in the latest SVN version,

I'll release a Beta Featured version in the next couple of days...

Currently working on The Matrix Plugin...