My data/articles/article.xml files was storred in server with something like this:
α&epsilon:&lp ..... etc
I made some changes in news_manager.php file (as Zegnant described) because it's not working with entities.
and after this, my *.xml file stores greek language correctly but I'm getting something like:
I know that ckeditor don't save entities correctly. Is there any solution to fix it ?????
α&epsilon:&lp ..... etc
I made some changes in news_manager.php file (as Zegnant described) because it's not working with entities.
Quote:* in function article_overview()
instead of
$title = html_entity_decode($data->title, ENT_QUOTES, 'UTF-8');
I 've put this
$title = htmlspecialchars_decode($data->title, ENT_QUOTES);
* in function edit_article($id) in CKEDITOR.replace parameters
instead of
entities : true,
I 've put this
entities : false,
* in function save_article()
instead of
$title = htmlentities($_POST['post-title'], ENT_QUOTES, 'UTF-8');
$content = htmlentities($_POST['post-content'], ENT_QUOTES, 'UTF-8');
$excerpt = htmlentities($_POST['post-excerpt'], ENT_QUOTES, 'UTF-8');
I 've put this
$title = htmlspecialchars($_POST['post-title'], ENT_QUOTES, 'UTF-8', false);
$content = htmlspecialchars($_POST['post-content'], ENT_QUOTES, 'UTF-8', false);
$excerpt = htmlspecialchars($_POST['post-excerpt'], ENT_QUOTES, 'UTF-8', false);
My GSCONFIG.PHP file got
# WYSIWYG editor language (default el)
define('GSEDITORLANG', 'el');
and
# Set PHP locale
# http://php.net/manual/en/function.setlocale.php
setlocale(LC_ALL, 'el_GR');
and after this, my *.xml file stores greek language correctly but I'm getting something like:
Quote:<content><p> <strong>Η μοÄοÃικλÎÂÄα</strong><br /> Η Honda CBR XX 110 Blackbird (ÃŽÂÄÃι είναι ολÌκληÃÂο Äο Ìνομά ÄηÂ) ÀÃÂÉÄοβγήκε Äο 1998 (Äο μονÄÎÂλο ήÄαν με <img alt="" src="http://getsimple.tetepoulidis.gr/data/uploads/image-092.jpg" style="margin-left: 8px; margin-right: 8px; margin-top: 8px; margin-bottom: 8px; float: left; width: 200px; height: 150px; " />καÃÂμÀÃÂ…ÃÂαÄÎÂÃÂ) και είÇε ÀεÃÂίÀοÃÂ… 150 hp. .</p>and article disappears from page ...
</content>
I know that ckeditor don't save entities correctly. Is there any solution to fix it ?????