2012-04-02, 11:01:29
This solution resolved my issue also. Thanks a lot!!! I'm using characters in portuguese.
v3par Wrote:Polish news doesn't work either. The file is created but filename is a mess
the problem seems to be with:
used for filenamesCode:$file_name = urlencode($id);
I just replaced it with
and everything works fineCode:$file_name = clean_url(to7bit($id, "UTF-8"));
(it will create clean filenames but without national characters
this is also used when creating directories for upload by the CMS itself)
also the permalink looks like mess with national characters and the above
solution isn't too good because it strips characters from post names
in the future maybe you should use some number ID for permalinks
(and maybe for filenames too)
EDIT:
i have also replaced this:
Code:$xml = @new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><item></item>');
$xml->addChild('title', empty($title) ? '(no title)' : $title);
$xml->addChild('date', $date);
$xml->addChild('content', $content);
$xml->addChild('excerpt', $excerpt);
with this:
Code:$xml = @new SimpleXMLExtended('<?xml version="1.0" encoding="UTF-8"?><item></item>');
$xml->addChild('title')-> addCData($title);
$xml->addChild('date')-> addCData($date);
$xml->addChild('content')-> addCData($content);
$xml->addChild('excerpt')-> addCData($excerpt);
otherwise i get this
Code:Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 2: parser error : Entity 'oacute' not defined in \admin\inc\basic.php on line 219
because "ó" is converted to ó
and finaly
you declare:
Code:define('RSS_SETTINGS', GSPLUGINPATH . 'extended_news_manager/settings.xml');
and then load the settings with:
Code:$settings = getXML(RSS_SETTINGS);
but you save it this way:
Code:XMLsave($xml, RSS_SETTINGS . 'settings.xml');
so the plugin reads each time settings.xml but writes to settings.xmlsettings.xml
thats why settings don't change
i'm no expert on this just reporting