1
Welcome, Guest. Please login or register.
November 22, 2008, 02:59:51 PM
Home Help Search Login Register
News: New Version of iJoomla Magazine for 1.5

+  iJoomla Forum
|-+  iJoomla RSS Feeder
| |-+  Support Questions
| | |-+  charset
« previous next »
Pages: [1] Print
Author Topic: charset  (Read 3004 times)
error
customers
Newbie
*
Posts: 8



View Profile WWW
« on: December 21, 2007, 09:09:48 AM »

How can I change the charset in rss feed on iso-8859-2?
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #1 on: December 21, 2007, 04:54:07 PM »

Edit your ijoomla_rss.php.
Regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
error
customers
Newbie
*
Posts: 8



View Profile WWW
« Reply #2 on: December 22, 2007, 10:09:54 AM »

Thanks for advice, but... it doesn't work. I've changed all "UTF-8" on "ISO-8859-2" and still national characters look strange.
Logged
KaiFly
customers
Newbie
*
Posts: 8


View Profile Email
« Reply #3 on: July 19, 2008, 11:22:06 AM »

hey,

i am having problems with the german umlauts ä ö ü....
they don't come up properly in the feeds.

what can i do?

Kai
Logged
error
customers
Newbie
*
Posts: 8



View Profile WWW
« Reply #4 on: July 19, 2008, 12:59:51 PM »

I am afraid you can do... nothing. I spend a few months changing joomla version, fonts coding, and making changes in files of RSS Feeder. Finaly, I turned off the component. Sorry, but if you will find solutions, give me a sign Smiley
Logged
ruigato
customers
Newbie
*
Posts: 20


View Profile Email
« Reply #5 on: July 19, 2008, 03:54:00 PM »

simplepie can convert the encoding:

http://www.ijoomla.com/forum/index.php/topic,1369.msg5401.html#msg5401

hope it helps
« Last Edit: July 20, 2008, 02:10:33 AM by ruigato » Logged
alin
customers
Newbie
*
Posts: 28


View Profile
« Reply #6 on: July 21, 2008, 04:57:51 AM »

in ijoomla_rss.php comment 2 lines of code:
Code:
// item information
    $item->title = utf8_encode($item_title);
    $item->link = JRoute::_($article_link);
    $item->description = utf8_encode($item_description);
    $item->source = $article_value->urls;   
become:

Code:
// item information
    //$item->title = utf8_encode($item_title);
    $item->link = JRoute::_($article_link);
    //$item->description = utf8_encode($item_description);
    $item->source = $article_value->urls;   

and see if help.
Logged
nlpseminars
customers
Newbie
*
Posts: 3


View Profile Email
« Reply #7 on: September 03, 2008, 03:14:51 PM »

when i comment those two lines, the feed becomes empty Cry
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #8 on: September 03, 2008, 04:10:14 PM »

Which version are you using?
Logged

Ricardo Corai
Moderator
www.planetacms.com
nlpseminars
customers
Newbie
*
Posts: 3


View Profile Email
« Reply #9 on: September 03, 2008, 11:06:17 PM »

The latest (I just bought it). I've also submitted a ticket.
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #10 on: September 04, 2008, 06:25:13 PM »

Ok,
Thanks, we are working on your ticket.
Best regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
Perun
customers
Newbie
*
Posts: 3


View Profile Email
« Reply #11 on: September 28, 2008, 10:00:07 AM »

Advice that alin made is almost correct Smiley

Code:
// item information
    // $item->title = utf8_encode($item_title);
$item->title = $item_title;
    $item->link = sefRelToAbs($article_link);
    // $item->description = utf8_encode($item_description);
$item->description = $item_description;
    $item->source = $article_value->urls;
Logged
Perun
customers
Newbie
*
Posts: 3


View Profile Email
« Reply #12 on: September 28, 2008, 11:56:39 PM »

This is not complete solution - there is still problem when last character in cuted string is some strange UTF8 character ... we need a function to cut UTF8 string correctly at the end of the word:

Code:
function mbCutText($string, $length, $delimiter = ' ', $postfix = ' ...') {
          $stringLength = mb_strlen($string, 'UTF-8');
          if($length <$stringLength and mb_strpos($string, $delimiter, null, 'UTF-8') !== false){
              while (mb_substr($string, $stringLength-1, $stringLength, 'UTF-8') != $delimiter) {
                  $stringLength--;
              }
              return mb_substr($string, 0, $stringLength, 'UTF-8').$postfix;
          }
           return $string;
      }

And of course we must change original substr for descripton content:
Code:
// description length
    if ($feed_chars>0 && (strlen($item_description) > $feed_chars)){
        $item_description = mbCutText($item_description,$feed_chars);
}
Logged
RicardoCorai
customers
Hero Member
*
Posts: 2264


View Profile WWW
« Reply #13 on: September 29, 2008, 06:06:35 PM »

Hi,
Please submit a support ticket and we will help you with this.
Best regards,
Logged

Ricardo Corai
Moderator
www.planetacms.com
Perun
customers
Newbie
*
Posts: 3


View Profile Email
« Reply #14 on: September 29, 2008, 11:11:31 PM »

Thanks, but i dont need support - it is working for me now Smiley

Of course the solution is only for those of us, who have db in utf8 format ...
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Theme Globe by Eponnox