This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

2 questions


avatar
cosmin 269
From: -
2 questions

Hi, Phillipp. I have a little problem importing news from a romanian site's feed. It is encoded with iso-8859-2, and when importing the news I get squares and other weird signs for a few specific characters.
Here's a sample of what gets imported
Advanced Micro Devices (AMD) a anunþat cã va începe o revizuire a contului de publicitate dupã ce agenþia McCann Erickson s-a arãtat interesatã de contul Intel.

and here's the result.
 http://www.file-portal.net/index.php.

The original feed is here  http://www.chip.ro/rss.php
I can't really figure out if it's the different encodings or something else.

Also you mentioned something in reply to another topic of mine about an update for 1.8. Is it out yet?

Thank you.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: 2 questions
avatar
Administrator
1340
From: Vienna, Austria
2 questions

Yes, I will respond later today.

The Internet connection in the Office is still down, but a technician will look into this today.
1 Re: 2 questions
avatar
OP 269
From: -
2 questions

Just to check, I sent you an e-mail message on Feb 7, with a screenshot of the RSS import problem. If you didn't get it I'll post it online. Thank you.
1 Re: 2 questions
avatar
Administrator
1340
From: Vienna, Austria
2 questions

Strange, I had no problem on my local installation with this modification.

Please send me a PM or trouble ticket with your Storyteller admin login. I need to take a look.
1 Re: 2 questions
avatar
OP 269
From: -
2 questions

Could be just me but it still doesn't work even though I removed the call to that function. I even removed and readded the news source to make sure it wasn't being cached or anything

Here's the code (I commented out the original line):

cadmin/mod_news.php starting line 1186



function xmlend($parser, $name)
{
global $item, $tag, $title, $description, $link, $otitle, $odescription, $olink;
if ($name == "ITEM")
{
$otitle[] = htmlentities(trim($title));
//$odescription[] = htmlentities(trim($description));
$odescription[] = trim($description);
$olink[] = htmlentities(trim($link));
$title = "";
$description = "";
$link = "";
$item = 0;
}
}
1 Re: 2 questions
avatar
Administrator
1340
From: Vienna, Austria
2 questions

Originally posted by cosmin:
The original feed is here  http://www.chip.ro/rss.php
I can't really figure out if it's the different encodings or something else.

Here the fix. Open cadmin/mod_news.php in an editor and find:

$odescription[] = htmlentities(trim($description));

Replace this line with:

$odescription[] = trim($description);


Originally posted by cosmin:
Also you mentioned something in reply to another topic of mine about an update for 1.8. Is it out yet?

No, the new update is now planned for next week.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.